Results 1 to 1 of 1

Thread: Hide Google Map and Picture DIV if there is none

  1. #1
    Thread Starter
    Amateur
    Not a Verified Customer
    winmonaye's Avatar
    Join Date
    Mar 2009
    Location
    San Jose, CA
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hide Google Map and Picture DIV if there is none

    B/c location and image are not mandatory, those code shouldn't show if there is none.
    The coding for this should be simple and I think it looks a lot better this way.

    Just add :
    Code:
    <?php if (get_post_meta($post->ID, "location", true)) {  ?>  <div>Google Map</div> <?php } ?>
    Same for the Image:
    Code:
    <?php if (get_post_meta($post->ID, 'images', true)) { ?> <div>Images</div>  <?php } ?>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How To Hide wp-admin page
    By bili.ph in forum ClassiPress General Discussion
    Replies: 3
    Last Post: April 20th, 2009, 02:25 AM