Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [child-pages]

The tag has no usage guidance.

0
votes
0answers
22 views

Display child category pages on perent category page

My sincere apology for asking a noob question here but I can't figure out this thing. I'm trying to benchmark the structure on this site www.starwalkkids.com/toys, Everything is fine accept bottom ...
1
vote
0answers
12 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
0answers
9 views

Create a default parents for children pages that have the same parent in the menu

Here's my problem: I'm building a website and my goal is to create a nice menu that will interact with the pages. So far so good, except for one problem. The structure of my menu is something like ...
0
votes
1answer
31 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
17 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
17 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
36 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
0answers
5 views

Statically populate menu with childs

My problem is very simple. I want to add all pages and subpages of a given parent page inside a menu. The problem is that the few plugins I found for this purpose, JC's Submenu or Gecka Submenu, do it ...
0
votes
1answer
37 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 ...
0
votes
0answers
27 views

Check if Title1 parent_id is equal to Title2 child_id

function get_table_columns() { $columns = array( 'author' => __( 'Author'), 'title' => __( 'Title'), ); return apply_filters( 'message_table_columns', $columns ); } function ...
0
votes
0answers
10 views

Display child page featured image on parent page and link together

I have a parent page that is based on Template A. Under this page is a child page on Template B - on this page goes the content and has a featured image that I need to get on parent page. So the idea ...
1
vote
1answer
22 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
38 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
22 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
192 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
110 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
75 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
0answers
60 views

Child Pages based on content within the post?

I am wondering how I can create a child page for each individual download link I have displayed within my WordPress the_content segment. Currently the inside of my WordPress content looks like this. &...
0
votes
1answer
145 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 ...
0
votes
0answers
39 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 ); ...
0
votes
0answers
35 views

Set page template and parent page automatically based on user login

I searched half the internet to find if the following is possible but unfortunately I can not find anything. I have the following hierarchy of pages: Main page Provider page 1 Provider package ...
0
votes
0answers
24 views

Getting child pages based on their actual menu order?

I'm able to get the child pages of a parent page with the following query: $args = array( 'post_parent' => $post->ID, 'post_type' => 'page', 'orderby' => 'menu_order', '...
1
vote
0answers
20 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
243 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
0answers
7 views

Child pages as a sub-section

I try to set a page template that shows all my children pages as a sub-section of parent page, but nothing working fine. Anyone can help me or have an idea to do this? I'm working with understrap
0
votes
2answers
25 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
25 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
67 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
0answers
33 views

4-layered parent-child relationship between differents custom post types in hierarchical order in a Wordpress-Plugin

I have a very similar situation than what's described here: How to set parent-child relationship between differents custom post types The problem though is that I have 4 different custom-post-types ...
0
votes
1answer
23 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
20 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 -...
0
votes
0answers
14 views

Childpage under slug of custom post type

I have a cpt (hierarchial and no archive) with the slug 'goals', resulting in url /goals/cpt-1, served by single-goals.php. This is perfect. I have a normal page "Goals" with permalink /goals/ served ...
0
votes
1answer
97 views

get_the_title() gets printed out twice

I made a script which checks if the currently viewed page has a parent page and if it does, it prints both the parent title and child title. But if there is no parent page I still get a title of the ...
1
vote
0answers
91 views

How to retrieve parent menu item name of current submenu item

I have a menu item Services which has 5 submenus. Now when I click on one of those submenus, like Flexible Endoscopes I manage to echo the title of child item or current page title. But I can't find ...
0
votes
1answer
204 views

Sort order of next/prev sibling page

I have a page with a couple of children pages. On the parent page I want all children page listed alphabetically by title, but I want the sorting to ignore articles like "The" or "A". I achieved this ...
4
votes
1answer
82 views

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

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 ...
0
votes
1answer
122 views

Get WordPress Child Page IDs

I'd like to shorten this code and instead of manually placing all children Id's, I'd like to pull out only the id's and set it to array. this could be something dynamic in the future when they are ...
0
votes
1answer
161 views

Child pages and sub-pages do not appear. Why?

I have created a child page. However, when I access "http://example.com/Page/ChildPage" does not appear? Page (filename = page.php -> content-page.php) [WORK] Child Page (filename = page.php -> ...
0
votes
0answers
31 views

Want a silo on my site but I can't choose a Parent page for post type Post in WP

I want to create a silo on my WordPress site so I create a post and then I should be able to (under Page Attributes, at the right side of that post) assign that post to a parent page. But there isn't ...
0
votes
1answer
109 views

Add link to parent page in list of child pages

I try to add link to parent page to a working list of childpages. The parent page must be the first item's list whenever the list appear. Here is the actual code found here : //* List child pages [...
0
votes
1answer
2k views

Get Child Page IDs by Parent ID

I am currently trying to grab a child page id from a custom post type, but my values returned are always null. I know that the particular ID I'm passing has a parent so there should be a match. What ...
0
votes
2answers
472 views

is_child() function

My need is to check if a page is subpage of a page (with ID). I try to get this code working but it doesn't. function is_child($pageID) { global $post; echo $post->post_parent; // display the ...
0
votes
1answer
48 views

Get top Page IDs from menu and cycle through their child pages on a scroller

I have a slick slider scroller on my home page that cycles through some of the pages I have on my main menu. I am using the following code to do this: <div class="page-scroller" > <div ...
1
vote
3answers
52 views

How to target children of child pages

I would like to apply special styling to the menu items of pages that are children of child pages. Is there a way to do this?
0
votes
1answer
42 views

Query to list all galleries under a parent post?

I have many child galleries organized by their parent galleries (multiple parent galleries with several child galleries under). I would like to create a shortcode that is able to query all the child ...
0
votes
0answers
39 views

Display list of pages that contain a certain string within the slug

I have an existing shortcode that generates a list of child pages/posts. I add the shortcode to the parent page, and then it lists out all of the children. HOWEVER, what I really want is to be able ...
1
vote
2answers
2k views

How to get all child pages in their parent page?

<?php $args = array( 'post_type' => 'page', 'posts_per_page' => -1, 'post_parent' => $post->ID, 'order' => 'ASC', 'orderby' => '...
1
vote
1answer
484 views

Display Child Pages of Custom Post Type Parent Page

I am attempting to display the child pages of a custom post_type page. I found a shortcode that works great for standard WordPress "pages" post_type, but doesn't work on custom post types. Here is ...
0
votes
1answer
94 views

Display child pages full template including the content

On a parent page I want to display all the childpages (first child only) including its template. For Example Pages: Parentpage (Templatename: parentpage) - Child A (Templatename: childpage) - Child ...
1
vote
0answers
20 views

Versioned Custom Post Type (Not the same as revisions)

I want to create a special custom post type with a url format as follows site_root/post_slug[/post_name[/version_number]] site_root/post_slug: points to a list of posts i.e. post_name site_root/...