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

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    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

    (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.