Support » Plugin: Widget Logic » Single post to display images based on URL slug?

  • Is there a way using Widget Logic to have a particular widget used for individual posts based on the slug of the post containing a certain word? I have been going thru the conditional tags here
    but cannot find a way to do it. Using Widget Logic I can get the different pages to display the correct background images for each page using is_page(‘page name’) and I can also get it to work for individual categories using is_category( ‘category name’ )

    I tried using the same approach for individual posts using Tags for each post, which in theory should solve my problem using the is_tag( ‘tag name’ ) and it does work. The problem is that on the main page of the blog, the posts using a tag are pulling up the main background image AND the images associated with the tag.

    What I think I need is something sort of like is_single_slug_contains(‘keyword’) so that when the post if views by itself, the keyword in the slug pulls in the correct image…

    Any ideas?

    [please post your question in one thread only; being all over the place does not help to get useful suggestions]

  • The topic ‘Single post to display images based on URL slug?’ is closed to new replies.