Use custom field data with widget logic?
-
Hi,
I have Wp-Types Toolset as my WP building blocks and with it I created a Custom Filed Group called Featured Listings. Within the group I have a field called “Featured Ads” and that has Radio Button options of displaying “Featured” or “Free Listing” Now what I want to do is have widgets NOT display if the listing is Featured.
I tried to follow an example found here http://wordpress.org/support/topic/plugin-widget-logic-use-custom-field-data-with-widget-logic?replies=2 as folows:
global $post; return is_single() && get_post_meta($post->ID, ‘featured-ads’, false)==’featured’;
The only thing that happened is that the widget was removed sitewide, so I obviously did something wrong. Could anyone help out with the logic I need?
Thanks
The topic ‘Use custom field data with widget logic?’ is closed to new replies.