Support » Plugins and Hacks » get_post_custom interfered by post tags (This is an odd one!)

Viewing 3 replies - 1 through 3 (of 3 total)
  • tomontoast

    (@tomontoast)

    How about using:

    if (get_post_custom()&&$quote = get_post_meta($post->ID, 'quote', true);) {
    echo "<div class=\"quote\">$quote</div>";
     }

    Tags are stored in the database in the same kind of format as meta items.

    Anna Johansson

    (@vintagemaniac)

    Ah! But of course, now that you say it it…

    Your code worked perfectly except for some minor stuff.

    Here’s my new (and by you improved) code:

    if (get_post_custom()&amp;&amp;$quote = get_post_meta($post->ID, 'quote', true)) {
    echo "<div class=\"quote\">$quote</div>";
     }

    Thank you for the help! =D

    Anna Johansson

    (@vintagemaniac)

    (argh, amps are being made into html even in backticks. annoying.)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘get_post_custom interfered by post tags (This is an odd one!)’ is closed to new replies.