I guess it’s always possible to hide them with js, but is there a code snippet out there for query level child page filter? I only want top level...
I’ve been trying to work with Conditional Tags and cannot wrap my head around this problem. PHP novice here. On sub-pages I need to display the parent page title...
Semi-new to WordPress, so apologies is this is an obvious question! I’m trying to execute some JavaScript on a WordPress site, but only on the child pages of a...
I currently have a parent page with some child pages. I am able to list these child pages but would like to insert a custom li class. The wp_list_pages...
I need to list subpages, given the id of parent one. I tried as follows: if ($children = get_pages(array('child_of' => $post->ID)) && !empty($children)) { //Do stuff here } But...
I inherited admin duties for my organization’s site. Ive noticed that if I enter a url with a child slug only (and drop the parent) it seems to redirect...
i’m query child pages of a page ID. How can i echo the parent page where it says “PARENT TITLE ? Using <?php echo get_the_title( $ID ); ?> is...
I’m looking for a way to only allow users to create new subpages once there are nine pages that are parents/root pages. Once there are nine parent pages when...
I have a custom post type with two levels of pages inside of it. the parent level we’ll call parent, and child – child. The parents need to be...
I created a hierarchical custom post type for a gallery. The parent pages are the galleries and the child pages are the albums. I want to display the most...