alkatro-com
Forum Replies Created
-
hi carolina
I hope this syntax can help you ??is_page(‘shop‘) || (is_single() && in_category(array(‘necklaces‘,’earrings‘)))
text in bold tag are case sensitive.
if your page name and categories are Shop, Earrings and Necklaces , you can try this conditional below:is_page(‘Shop‘) || (is_single() && in_category(array(‘Necklaces‘,’Earrings‘)))
Forum: Plugins
In reply to: [Widget Logic] Prevent from showing on pages & specific categoriesgood day ??
try this, maybe it would help your problemhide from specific pages and hide from all posts under the specific categories.
!is_page (array(6095,6096,7770)) || (is_single() && in_category(array(1,2,3)))
bold markup is an example of your related ID
Forum: Plugins
In reply to: [Widget Logic] Hide widgets on single pages?hide on single post and archive
!is_single() && !is_archive()
hide on pages, archive and archived post page (your-site.com/page/x/)
!is_page() && !is_archive() && !is_paged()
hi friend ??
maybe you can try to replace
&& to ||is_home() && !is_paged() || is_page(‘About’) || is_page(‘Contact’)
to display only at home and to all pages sidebar ( such as contact, about or disclaimer page)
is_home() || is_page()
5,9,10,11 are example of your category ID
sorry, edited typo: missing ‘)’ at end of logic
is_category(array(5,9,10,11)) || (is_single() && in_category(array(5,9,10,11)))
if post pages = your single post, Maybe you can try this logic ??
is_category(array(5,9,10,11)) || (is_single() && in_category(array(5,9,10,11))