The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
16 views

Add theme templates for child categories into the template hierarchy

in my site i have many category and subcategory (child category) say like my one category name Printing - 4 color - 2 color - offset print Exmple i want when visit 4 color category page it ...
0
votes
2answers
29 views

Custom page template for multiple pages

A site I'm currently working on has a page structure like this About Us | |_People | | | _ Person 1 | _ Person 2 | _ Person 3 |... etc ... Every 'Person' page is a separate page, but they all ...
4
votes
2answers
73 views

Easy way to process search results before displaying

I've got several search forms on my site and I want them to show different results. My website has a very strict hierarchy and the search form on a parent site should only show results from it's child ...
0
votes
0answers
17 views

All of one Custom Post Type as a child of a Standard Page

I'm working on a site right now where there is a need to have a Custom Post Type act as the child of a specific Page (That is, all posts within the post type that do not have a parent, use the page as ...
0
votes
0answers
18 views

Secondary navigation with children and grandchildren pages

I am trying to get a navbar working which has two parts. One main part at the top of the page and one part in a sidebar-like column on the left. The navigation in the "sidebar" shows all the children ...
1
vote
1answer
23 views

Show siblings (if any) and parents

My question relates to showing the parents and siblings of the current page. If I am on level 2 page, I would like to show siblings without their children. If I am on level 3 page, I would like to ...
1
vote
1answer
48 views

What code should I use to display children of a custom post?

I have a hierarchical custom post type, and on each single view of a post of this type I want to display the title of the children of this post, outside of the loop. The code I'm currently using is ...
1
vote
2answers
37 views

Javascript that will execute on only child pages of a specific parent

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 specific parent page - so, I have ...
1
vote
1answer
30 views

Search pages that are a child of the current page

I'm developing my own Wordpress theme and I was wondering if it is possible to modify the search query in a way that it only return results that are child pages of the actual page. The reason I want ...
0
votes
0answers
31 views

Child 'page' of 'private' looses /parent/ in permalink after child update

For example, I have the site structure, where I want to publish child pages to be indexed by Google before their parent page is ready. I can't do this because I can't choose the parent page for ...
0
votes
2answers
37 views

Wordpress custom post type and page

I do using custom post type by lists, "Post_type = color" eg./color My color-archive.php contain just search form. I delete all while loops! I want to expose posts within page templates. eg./color/...
0
votes
1answer
28 views

Do not show child pages of child pages

I'm looking (without having to copy the whole code) that when the child page has child pages of it's own that it wil not show those child pages but still the parrent page 2 levels up. i played with it ...
-1
votes
2answers
27 views

Show the grandmother/father of the childpage

I have a little problem. This is my page structure: Ancestor Parent Child 1 Child 2 Child 3 Child 4 What i try to do is when i'm on Child 4 i want to show ...
0
votes
2answers
28 views

Wordpress Child Theme Template auth_redirect wrapper

I'm successfully utilizing a child theme in Wordpress. I would like to create a page template that simply forces login for any visits to the pages where this template is in use. (Simply need to add &...
0
votes
1answer
55 views

How to sort a sub-menu, generated with get_pages(), by the page order instead of alphabetically?

I want the top nav on a wordpress site to automatically show the child pages. I know that I can edit my menu and add the children, but I want them to appear automatically, and for the menu to update ...
1
vote
0answers
35 views

Display child pages on parent page: 404 message overrules shortcode in page

I am trying to get a page to show a list of the child pages. I am using the Foodie Pro theme on the Genesis framework. I am using the following code to do so: add_filter('the_excerpt', 'do_shortcode'...
1
vote
0answers
19 views

Removed custom post type slug but not working for child pages

There are many discussions going about to handle child pages for custom post types were the custom post type slug has been removed. This results into an 404 because Wordpress can't match a valid regex....
1
vote
1answer
90 views

Child page in custom post throws 404 page not found

Currently I am trying to add a page as a child in my custom post section. The parent pages in my custom posts works correctly, I've set a template file for them as singe-custom_post_name.php. All good....
0
votes
1answer
424 views

Custom rewrite rule for hierarchical custom post type

Working on a client site I've encounter my worst enemy... WP URL rewrite :(. I actually can't figure it out and after many days trying and searching, I can't make it work. What I'm trying to get is ...
1
vote
2answers
39 views

How do I Turn This Into An if statement?

PHP noob here. I've got this query I've written to get the information of all child pages of the page you're currently on: <?php $pages = get_pages('child_of=...
0
votes
1answer
136 views

Do we need to change our child function.php to require/include child dir files when we add an over-riding file.php into the child theme

With child themes we are supposed to leave parent functions.php in tact and extend it with the child functions.php. However parent functions.php typically define a whole load of include/requires which ...
2
votes
3answers
200 views

Get only the grandchildren, not the direct children of page/current page?

I know javascript pretty well now but I am new to php and wordpress theme building. I have searched a fair bit and can't find a solution to something that seems like a pretty simple task, all I would ...
0
votes
0answers
13 views

Page is taking old removed attachment

The code given below is making the page to take all the media/attachments ever attached to the page ... even after removal of them from the page Even after I removed and left no media on page it is ...
0
votes
1answer
63 views

Child Theme problems

I have a Premium WordPress theme that I created a child theme on. I can change the regular WordPress php pages and the css on the parent theme inside the child theme with no problems. Inside the ...
1
vote
1answer
94 views

Best way to give site sub-page it's own domain?

I am trying to figure out the best way to have a sub-page of an existing site as the landing page of another domain. Here is the scenario: I have a wordpress site (examplesite.co.uk) that uses a ...
0
votes
0answers
17 views

Page 2 shows same posts as on homepage

I am using Genisis Framework and eleven40 pro theme. And created a static homepage to remove the grid from the homepage everything was going fine but all of a sudden when i clicked on "page 2" it ...
0
votes
1answer
68 views

Keep page hierarchy in wp_list_pages, even if on a child or grandchild

I have the following structure of pages, and I need to have that same structure displayed on those pages who have child pages: - Childpage - - Grandchildpage - - Other Grandchildpage - Other ...
0
votes
0answers
30 views

How to display child pages with in a limited child content?

I have a php snippet that will displayed child pages. And now, I want to displayed only the featured image with the 55 characters of content only (except the title) and put some button. Like this http:...
0
votes
1answer
42 views

Display child pages in a parent page? [closed]

I have a "News" page with child pages and I want to display those child pages in "News" page only, like this How can I achieve this?
0
votes
1answer
24 views

Page permalink ending in “-2”

I have a couple of child pages that keeping ending in "-2" on the permalink even if I go in and manually change the permalink. I do not have any pages that are a duplicate title of these so I have no ...
0
votes
1answer
225 views

Adding custom slugs: parent-page/username/child-page/

I'm in a bit of a muddle understanding how I can change my $_GET variables into a 'slug'. I already have a setup of a parent-page/child-page using wp_insert_post. BUT! I want to add a variable in-...
0
votes
1answer
163 views

How to populate a parent page with its child subpages and associated templates

I have a decent understanding of Wordpress as well as the Advanced Custom Fields Plugin and I'm trying to write my parent page template right now, but I'm having trouble trying to figure out how I can ...
0
votes
1answer
815 views

Get parent page url show up when it's in child pages

I would like to ask that, how to get the link back to parent page when i'm in the child pages? I would rather to use a proper link instead of <a href="javascript:history.back()">Go Back</a>...
0
votes
1answer
104 views

Display inner pages like posts.[Like how post excerpt works]

This question may be stupid. But, i'm just wondering if there is a possibly way to display page as excerpt like how post excerpt works. You may not be able to understand what am i trying to ask till ...
0
votes
0answers
106 views

Child pages in a Custom Post Type are appearing blank

I've registered a CPT with the following: function create_client_post_type() { $labels = array( 'name' => _x( 'Clients', 'Post Type General Name', 'text_domain' ), ...
0
votes
1answer
36 views

How to show the view more on my display of pages shortcode

I want to show the list of childpages under a certain parent page & set how many childpages to display & show the "View More" link below the last child page displaying. What was missing from ...
2
votes
3answers
75 views

How to get a list of all recently published child pages?

Can you please help me on how can I display a list <li> of newly published child pages. I've been looking on google how to use display it using the wp_list_pages(); but can't find out there. I ...
0
votes
1answer
16 views

Children Pages Displaying Only Intermittenty

Created a sidebar that lists WP's default pages' children. Yet there is some intermittent behavior where the sidebar lists the directory correctly on one page, but nothing on another. Live examples ...
1
vote
2answers
624 views

Can I have two child pages of different parents with the same name?

I have two pages - new.hillsong.com/australia/sisterhood - new.hillsong.com/hills/sisterhood Both pages are displaying the content for the /hills/sisterhood site but they are different pages with ...
3
votes
2answers
5k views

A check for if is parent page, if has children, if has grandchildren

I have one default page template that I wish to use for two scenarios. I'd prefer to use only one page template for the sake of simplicity for my client. Here's what I'm trying to accomplish: if ...
0
votes
0answers
166 views

Display a list of child pages as a menu, inside a parent page

I need to create a menu made of child pages inside a parent page. So, I've achieved this correctly in 2 ways: Building a custom menu and adding it inside a widget Following this tutorial What I'm ...
0
votes
1answer
37 views

Childpage title + content on Parent Page

Currently I'm trying to make a dynamic bootstrap collapse with child page information. The problems I'm facing is how to get the_content(); (it's all text without a read more option) of a child page ...
1
vote
1answer
229 views

Schedule Page to Menu [duplicate]

Every week I tend to have 2-4 pages scheduled though I need to get them added to my menu as well. The "Add New Top Level Pages to Menu" option won't work in my case though as the pages in question ...
0
votes
1answer
49 views

Menu order of parent menu from perspective of child menu

I have developed a theme which has a parent menu and a sub-menu. It looks something like: Main menu ==> category | price | depot sub menu for category ==> tag| name | date (show/...
0
votes
0answers
137 views

Sidebar menu, different parent and child pages

I wish to organize a hierarchy of pages into a navigation menu in a manner similar to the following: Cats Short-haired Long-haired Purebred About Animals Dogs Toy Dogs Hounds Terriers About ...
0
votes
0answers
105 views

How to copy specific page content and create child page?

I am using SOULMEDIC theme, but need to have full customized specified page, What is the best way to simplify and create a page-{id}.php in child folder? How to copy all content and simply edit in my ...
0
votes
1answer
37 views

How to hightlight all ancestor menu items of a child page NOT displayed in menu

Here's the situation: In my main navigation menu I have something that looks like this: Work with Me Latest Projects Where the Latest Projects page is a child page and sub menu item of the Work ...
0
votes
1answer
38 views

List of child pages fetch next results at link click

I have a list of child pages which are getting displayed as links to those pages. Im displaying it in a certain div with a maximum of 6 results. What I want is I have a "a href" which is called more......
0
votes
3answers
120 views

Sort and display pages with specific custom field (not tag)

What I need basically is to display child pages on a parent. But I want to split the list of childs to, lets say, 'important' and 'non-important' to display it at the beginning and at the end of a ...
0
votes
1answer
104 views

Why is wp_list_pages altering $post->ID of the page?

So I have a template that is used for all pages in a section that has this script to create a menu based off children: <?php if($post->ID = 142) { $children = wp_list_pages("...