Questions tagged [child-pages]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
15 views

Next and Previous Posts of Same Parent

I'm working on a website for a webcomic and I have a custom post type set up for comic pages. I have multiple series on the site and have made each comic page a child post of a parent (one parent for ...
0
votes
1answer
52 views

Child Theme not overwriting Parent theme php file

I'm new to Wordpress and how Child themes work. My child theme I am trying to overwrite two files in sub-directories. I've copied the parent files and edited them in child theme but changes are not ...
0
votes
0answers
15 views

Create Child page landing pages with search function

Hello all Neewb here so please bear with me. I am in need of a way to land child pages on a parent page. Before you jump at me, here is the situation. I own a condiment company, I would like to ...
0
votes
0answers
7 views

How to make mydomain.com/[post_typeA]/[post_nameB]/[post_nameA] not 404: custom post types rewrite rules. ([PostTypeA]/[ParentPage]/[ChildPage])

I scoured this forum and a lot of others but I have not found the answer and starting to doubt whether it's even possible.. I'm trying to make a site with week and day posts, a day post is called "...
0
votes
1answer
19 views

How do I find out which (page) template file my custom child post is looking for?

I am trying to make something like a web-app with WP. One of the issues I'm facing now is that I cannot find out which page template file my post is looking for. I have looked at template file ...
0
votes
1answer
48 views

How to get an array of pages ID by some page's slug and all its children pages in get_posts() function?

I have a custom function in my theme that creates a dynamic sitemap.xml file. For that I'm using $myVar = get_posts( array(...) ). In that array I need to exclude some pages. I want to exclude some ...
0
votes
1answer
102 views

select a private page as parent for another private page

I am trying to build a customer portal however the private page is not showing in the parent drop-down (The drop-down at the right bottom of page settings under page attributes). Both the parent and ...
0
votes
0answers
17 views

Turning nested lists into one list using wp_list_pages

I have the following list using the wp_list_pages function: <ul> <?php wp_list_pages('include=27,29,23,21,1614&title_li='); ?> </ul> However, pages 23, 21 and 1614 are all ...
0
votes
0answers
46 views

List child-pages and parent-page, even on child-pages

I want to list all parent-page and child-pages in side (like a menu-widget), and this should even work on the child-pages. To list parent-page. All functions out there I have found are solving almost ...
3
votes
0answers
116 views

Some pages are missing from the Parent Page select in the Editor

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 characters in the titles or permalinks. ...
0
votes
1answer
32 views

Return true if parent page id matches

I'm trying to write a function (with little luck) that does a simple check against the top level parent page and returns true if the ID matches a supplied ID number. For example; If I'm on page ...
0
votes
1answer
19 views

Only one parent page showing

I'm working with the Incubator theme. I have created two other parent pages but they come up blank, with no content. The only way they show content is if I set them, one at a time, as the homepage in ...
1
vote
1answer
99 views

Need wp_query to return all children and grandchildren

I am working on a site with three different main 'topevel' sections, that act as the top level parents of the site. Each toplevel section has children and grandchildren, and there needs to be a ...
0
votes
0answers
46 views

Remove parent slug from child page

I am using WordPress as a CMS with a bunch of static pages. These pages were originally created with no hierarchy, but I would now like to make some pages child pages purely for administrative ...
0
votes
1answer
30 views

Return value of get_permalink(0) and get_the_title(0)

I'm new to wordpress and I'm following a tutorial right now but I don't understand wordpresses behaviour. I'm trying to change the title of a sidebar which lists the parentpage and it's childpages, ...
0
votes
1answer
46 views

Hide BBPress create topic on one page

Hi sorry this is really basic question. I was just starting to explore wordpress and bbpress, I have a page with the forum index using the shortcode, when I enter a forum it has all the topics and the ...
0
votes
0answers
44 views

How to use POST method using custom wordpress button?

everyone! I'm pretty new to wordpress development, and right now i'm trying develop a small ecommerce site using some wordpress plugins and some php on my part. Right now i'm in the middle of ...
0
votes
1answer
78 views

How to get child pages and add unique class only to active page?

I have a parent page with child pages. How to get child pages and add unique class only to active page ? I am making a sidebar with children's menu parent page one level up. I can list all child ...
1
vote
1answer
141 views

Allow users to publish child pages of the pages they have access to edit

I have created a custom role called Custom Author. Users in this role can edit their own pages and add new pages. I would like to restrict new page creation and allow Custom Authors to create pages ...
0
votes
1answer
58 views

How to Display Shortcode in the correct location, currently displaying before content after Page Title?

I am having an issue displaying the shortcode in the correct location when using a display child pages query. Can someone fix this for me? Thank you! function show_product_pages() { global $...
1
vote
1answer
124 views

Remove custom post type slug not working for child pages

I'd like my custom post type, products, to not use a slug, eg: domain.com/product-name. The code below sorts that out nicely, however it fails to work with child pages, eg: domain.com/product-name/...
1
vote
1answer
87 views

How to get specified parent page title in my function

Below I have a function that prints the child pages of a parent. I am trying to obtain the specified parent pages title as a h2 above the unordered list. I have tried updating the title_li and also ...
1
vote
1answer
554 views

List child pages of specific page using shortcode

I have written the function below to list the current pages child pages. Now what I am trying to do is list the children of a specific page using its slug in the shortcode. Is it possible to sneak an ...
0
votes
0answers
32 views

Standard Page Child of CPT Not Found (404)

I am about to lose my mind figuring this out. I have a custom post type called "portal" and posts of that type can be the parent of a standard page. To accomplish that I've written code that adds the ...
0
votes
3answers
213 views

WP_Query returns different results from get_posts() [closed]

So I have two code snippets, trying to get the child pages of the current page. The current page is "Sample", and the following code lives in page-sample.php. The first snippet uses get_posts() $...
0
votes
1answer
25 views

Creating navigation out of specific IDs and their children?

I'm looking for a way to list three specific pages in a nav-menu (I want to get these pages by their unique page ID's), and also list the children of these three pages - appended to each list item, in ...
2
votes
1answer
83 views

Query children and parent title

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 not an option. <?php $args = array( '...
0
votes
1answer
42 views

Child and Parent Pages list of sub pages

I have a parent page called services with children, each service child has child pages within it. On the first level child page i want to show all of the pages below it in. When i click through to ...
0
votes
1answer
212 views

Create a list of pages excluding children of selected page

I am looking to find a way to create a list of the IDs of children pages from a selected page. My goal is to use the list of IDs so that I can exclude them from the following function: wp_list_pages(...
1
vote
0answers
15 views

How to display all subpages and short by year

How can I display all child-pages and short by year in Wordpress For example: all subpages in 2016, 2017, 2018: • 2018: ----- Subpage A ----- Subpage B ----- Subpage C • 2017: ----- ...
0
votes
1answer
61 views

WordPress Betheme: Unkown subheader image of a child page

I want to get the URL of the Muffin Betheme subheader image of a child page, in the parent one, for each of its children. Thus, I go through the children, then I try to get the subheader image for ...
0
votes
0answers
20 views

How do I list subpages in post editor view?

I have many pages, each with many subpages nested up to 5 levels deep. In order to find a specific page in the administration panel, I can search for it on the list of all pages. The search results ...
0
votes
1answer
33 views

If page or sub page not working as expected

I would like to display a specific dynamic sidebar the the "about" page and its children. From the codex, I have tried the following: <?php // Begin main loop if ( have_posts() ): while ( ...
1
vote
2answers
45 views

How to show child page without providing ID so it's dynamic

So this is my code. This piece of code shows me the child page titles. But i'm providing the ID from the parent page. Is there a way to make this dynamic? I don't want to use the ID cuz then its ...
0
votes
1answer
631 views

Get Top parent url

I have the following structure: TOP PAGE SUB PAGE 1 --- SUB SUB PAGE 1 --- SUB SUB SUB PAGE 1 ---- SUB SUB SUB SUB PAGE 1 --- SUB SUB SUB PAGE 1 --- SUB SUB SUB PAGE 1 ---- SUB SUB SUB SUB PAGE 1 ...
1
vote
1answer
31 views

Child theme does not load all style

I know this thing has been posted several times now, but I can't figure it out. I am asking for your help. I have created theme child before, for other WordPress themes, but this one is giving me hard ...
2
votes
2answers
333 views

Get custom field value from Grandparent Page for Parent and Child Pages

I've created the following pages and hierarchy: Grandparent Parent Parent Parent Child Child Child Parent Parent Grandparent The Grandparent pages have an ACF custom field to pick the colour. I'...
1
vote
1answer
53 views

Programmatically add existing pages and subpages to Appearance Menu

I have inherited a site with over 600 pages/subpages. I plan to use a plugin to change the way the navigation displays but it requires the pages to be in the Appearance -> Menu in this page: /wp-admin/...
7
votes
2answers
213 views

Remove WordPress theme from a specific page

There is a site with WordPress installed and a theme selected. I have created an HTML page for the site, but it wasn't looking well with the theme. So, I want to put the page on the site without any ...
1
vote
1answer
327 views

Use same page template for parent and child pages in a theme

I am working on a template which one uses on both parent and child pages. Suppose I have a: template name: TEST I need to use that template on both parent and child pages: Parent page name -> ...
0
votes
1answer
455 views

Does WordPress automatically redirect url without parent slug?

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 to the full url. Ex: www.example.com/child-...
0
votes
1answer
701 views

Query to get child pages of current page and display it in action hook

First I want to apologize if there are spelling mistakes in this question. I'm using Genesis Framework. According to the following answer: https://wordpress.stackexchange.com/a/60295/146574 I'm ...
1
vote
0answers
154 views

Advanced Custom Fields dynamic update_field

I have a function that is triggered when a new review is submitted on a specific page. function rex_my_action ($review, $post_id) { $some_value = get_post_meta( 753, 'rwp_user_score', true ); ...
1
vote
0answers
27 views

Share parent path between Custom Post Types and Pages?

Here's my situation: I have a custom post type I created called "professions" with three professions ("military", "firefighters", "law-enforcement"). I created a page single-professions.php to use ...
0
votes
2answers
718 views

Display a list of sub-pages of Custom Post Type Parent Page

I am trying to display the sub-pages of a custom page on the parent page. I found an abbreviated code that works very well for standard WordPress post_type "pages", but does not work for custom ...
0
votes
2answers
56 views

Modify available templates (in dropdown)

I'm developing a WordPress theme with several templates. One template is called "Tabs". If a page with this template assigned has children pages, parts of their contents are shown in tabs on the ...
0
votes
1answer
71 views

How to disable alphabetical sorting page

I'm using the following code to display child pages on their parent page and all child pages are sorting alphabetically.how i can turn it off or change sorting by creation date? <?php global ...
1
vote
1answer
283 views

Child page excerpt

I have a parent page with some child pages inside. What I'm looking to do is display every child page excerpt and some other information inside its own cell on the parent page. Does anyone know how ...
0
votes
1answer
35 views

I have a problem with displaying children pages of custom post type

All I need is to get a number of children pages of a custom post type This is my query: $args = array( 'post_parent' => $post->ID, 'post_type' => 'all_products', 'orderby' => '...
0
votes
0answers
24 views

Structure for calling child pages

In my project, I want the parent page to display 3 child pages in its menu. Every child page will be different from product to product. For example Product 1(Parent) -Product 1 -Overview -...

1
2 3 4 5 6