• How would I turn the following code into an array. I have lots of meta tags: item1, item2, item3 etc. I want a div to appear if ANY ONE of the aforementioned meta tags is populated.

    <?php if((get_post_meta($post->ID, "item1", true))) { ?>

    EG what i want to achive is:

    <?php if((get_post_meta($post->ID, "item1 OR item2 OR item3", true))) { ?>

    Thank you in advance

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘post meta array’ is closed to new replies.