We are trying to create a function for breadcrumbs that will show not only the path to the current page, but also to other pages with the same parent...
Using this piece of code you can show content depending if it’s a child-page or not: <?php global $post; if ( is_page() && $post->post_parent ) : ?> This is...
I’m looking for a plugin/custom function that removes the parent slug of a child’s page permalink. Something that automatically changes the permalink for child pages. Example: www.blog.com/products/apple becomes www.blog.com/apple...
Here we have a snippet from a functions.php file… add_action('init', 'create_recipes'); function create_recipes() { $recipes_args = array( ...some properies..., 'hierarchical' => false, 'rewrite' => array('slug' => 'recipes') ...maybe more...
I’ve never posted here, but I’m tired of slapping code together. That said, I would be most appreciative if someone could help me with this. I need a page...
I want to be able to have a link like this, site.com/my-custom-type-slug/single-custom-post-name/stats/, where /stats should contain the /my-custom-type-slug page content and when I add content to the /stats page,...
Two of my top-level Pages, and all of their children, are missing from the dropdown menu in the Block Editor for selecting a Parent Page. There are no special...
I’m a begginer in php and css. I would like to know how to keep an top-menu item underlined while navigating on child pages. Here is my layout: I...
I’m looking for a snippit/function that will list the child pages of a specific page (I guess by page ID) but not necessarily when you are on that page...
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...