Conditional For Single Post But Not On Archive
-
I’m trying to create a conditional that works on blog posts but not when those posts are being displayed on an archive.
I thought that something like this would work:
is_single() && !is_archive()
My assumption was by doing this what I want to do will be output on the individual blog post pages but when those posts are displayed on a category it would not be output.
It’s not working.
How can I use a conditional that will only fire when it’s an individual blog post page and not an archive?
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Conditional For Single Post But Not On Archive’ is closed to new replies.