RhymedCode Forum » Custom Write Panel

Styling before/after the keys value

(2 posts)

Tags:


  1. How would I go about defining some HTMl before or after a key in a post.

    For instance, my current code is:
    <?php echo get_post_meta($post->ID, "Price", true); ?>
    <?php echo get_post_meta($post->ID, "Location", true); ?>
    <?php echo get_post_meta($post->ID, "Type", true); ?>
    <?php echo get_post_meta($post->ID, "Year Built", true); ?>
    <?php echo get_post_meta($post->ID, "Beds", true); ?>
    <?php echo get_post_meta($post->ID, "Baths", true); ?>
    <?php echo get_post_meta($post->ID, "Square Feet", true); ?>
    <?php echo get_post_meta($post->ID, "Acres", true); ?>
    <?php echo get_post_meta($post->ID, "Agent", true); ?>
    <?php echo get_post_meta($post->ID, "Listing Number", true); ?>
    <?php echo get_post_meta($post->ID, "Status", true); ?>

    It currently shows up as just the entered values when I want it to display as something like:
    Price: 150000
    Location: 123 Main
    Type: Residential

    In other words, how would I show the Keys name along with the value?

    Thanks in advance!

    Posted 2 years ago #
  2. Also, when I try to enter in html code, it obviously enters it into every single post since It's entered into my ../single.php file

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.