Saturday, October 22, 2022
HomeWordPress Developmentphp - Customized put up sort is_singular condtional not working when managing...

php – Customized put up sort is_singular condtional not working when managing sidebar show


I’m utilizing the if ( is_home() || ! is_page_template( array( 'template-investment.php', 'template-tourism.php' ) ) || ! is_singular( 'itemizing' ) ) { conditional to regulate the show of the theme’s sidebar in sure situations on my shopper’s theme.

It’s working for the is_home and ! is_page_template conditionals, however not the is_singular for the itemizing customized put up sort (Toolset plugin).

The physique lessons for the only itemizing pages are included beneath.

listing-template-default
single
single-listing
postid-3119
logged-in
views-template-content-template-for-listings

As single-listing is included, I might assume it ought to be working.

Would the dynamic nature of how Toolset creates templates be inflicting battle?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments