I don’t know if this has been posted before, but it would be nice to have the conditional tags extended a bit.
For instance, I have a series of pages that use a parent page on my website.
I also conditional logic to create variable sidebar content, which has been an absolute godsend for me. It’s one of my favorite features of WordPress functionality.
However, it’s somewhat lacking, as I need to create a different if statement for each page if I want to display content, even if the content for 2 or more pages will be the same. This is somewhat of a pain, and if I need to update the content for these 2 pages, I need to do it in 2 or more places.
Basically, it would be really nice if you could have:
It would be even better to have this idea extended to is_single, is_category, is_author, is_pages, and is_attachment.
I’m planning on standarding many of my client’s website on WordPress, so except many more of these suggestions as I go through the paces.
- The topic ‘Conditional Tags Feature Request’ is closed to new replies.