Archived topic
Simple way to exclude hook display on multiple pages?
1 reply · Started by Tom on May 10, 2021
Is there any way I can prevent a hook from displaying on multiple pages by listing their numerical IDs? Adding a set of exclusion rules individually, with dropdown selection of each pages, is laborious - and confusing as I have some pages with the same title.
Hi there,
see this topic for my preferred method:
https://generatepress.com/forums/topic/header-layout-control-for-client/#post-1421567
It will create a custom taxonomy specifically for setting terms to be used in Element Display Rules.
This way you can enable or disable a element from within the post editor, as well as at quick glance see all the posts that are assigned to that element.