Using Widget Logic with WPadverts
-
If you use widget logic with wpadverts, find some tags you’ll need to display custom widgets below. This has helped me avoid messing with templates.
To display widgets only on the single adverts page:
is_singular( 'advert' )To display widgets only on the category page:
is_tax( 'advert_category' )To display widgets only on specific category page:
is_tax( 'advert_category','category-name' )To display widgets on all location pages with the maps/location mod:
is_tax( 'advert_location' )To display widgets on specific locations with the maps/location mod:
is_tax( 'advert_location','your-location' )To display widgets on all ads by author pages using Greg’s snippet:
is_numeric( adverts_request( 'posted_by' ) )I haven’t figured out specific users yet. Share it if you have it.
The topic ‘Using Widget Logic with WPadverts’ is closed to new replies.