Hide the Private prefix on one specific page

Trying to conditionally hide the “private” prefix in front of the page title on one specific page named ‘members’ only. I used this code in functions.php to hide the prefix on all pages. function title_format($content) { return ‘%s’; } add_filter(‘private_title_format’, ‘title_format’); add_filter(‘protected_title_format’, ‘title_format’); Tried to hook into this with the if is_page ( ‘members’ ) … Read more

How to add specific menu on a specific page or pages

I’m looking for help on how to add specific menu on a specific page or pages with no plugin. I know how to add and register a new menu like this: //* Register third navigation menu position function register_additional_menu() { register_nav_menu( ‘third-menu’ ,__( ‘Third Navigation Menu’ )); } add_action( ‘init’, ‘register_additional_menu’ ); add_action( ‘genesis_before_content’, ‘add_third_nav_genesis’ … Read more

Can I create a page template, use it once, then hide/remove the option to use it again?

I am working on a WP theme/project that includes several custom page templates that will only be used once each. For example, there is a page with a map and search form for finding things on the map. Clearly the map page needs a unique page template, but that template will never be used for … Read more

Custom user role that can only edit specific (non-custom-type) page and all child pages [duplicate]

This question already has answers here: Allowing user to edit only certain pages (4 answers) Closed 4 years ago. My site has several static pages and several custom post types. I’m trying to create a custom user role called students and give students access to ONLY certain custom post types and certain specific static pages. … Read more