The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
0answers
18 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', ...
1
vote
0answers
11 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 ...
1
vote
1answer
20 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 ...
0
votes
1answer
56 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
0answers
11 views

Improve list of pages in admin [closed]

I have a WordPress website with a lot of pages in a complex hierarchy. Thus, the list of pages in the admin is very long and hard to navigate. Is there a plugin that improves that? It would be great ...
1
vote
2answers
32 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 = ...
0
votes
1answer
65 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
89 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
12 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
52 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 ...
0
votes
1answer
36 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
11 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
36 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
27 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 ...
0
votes
1answer
38 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
17 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
98 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 ...
0
votes
1answer
57 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
421 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 ...
0
votes
0answers
71 views

Ampersand in Title Causes issues in Breadcrumbs & Sidebar

I'm having a problem with ampersands in Wordpress Page Titles. I have a sidebar that displays the Page Parent Title & a list of children underneath. If the the Page Parent Title has an Ampersand ...
0
votes
1answer
79 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
74 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
32 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 ...
0
votes
0answers
31 views

How to display the 3rd & 4th level children only, using get_children()?

I found this code & edited it for my needs. How can I only display the 3rd & 4th level child pages of "Home"? I just want to display the 3rd & 4th level child pages because that's the main ...
2
votes
3answers
64 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
15 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
356 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
2k 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
115 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
28 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 ...
0
votes
0answers
65 views

Page with same name of category

I've a category "news", I've removed /category from url so final URL is example.com/news/. Now I want to create a page (not a subcategory) "sport" which final URL has to be example.com/news/sport/. To ...
1
vote
1answer
168 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
43 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 ...
0
votes
0answers
119 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
91 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
31 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
33 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 ...
0
votes
3answers
105 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
82 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 = ...
0
votes
1answer
152 views

Dynamic menu wp_list_pages displaying only current branch including: current page, his siblings and its childs

I'm trying to build a sidebar menu displaying child pages of a grandparent page, his siblings and their childs, and keep those siblings and childs available while navigating through them. I've been ...
1
vote
1answer
67 views

List children on child post

I have a custom post type with children posts. If I'm viewing one of the children post how can I list other children posts that uses the same parent?
0
votes
1answer
204 views

Display Child Page with custom fields within Parent Page

I have a parent page with multiple Child Pages. On the child page template I have an include which has customfields. This works perfectly. The custom fields are on the child page in wordpress. The ...
0
votes
1answer
328 views

Sidebar current menu item for parent

I have a menu within the sidebar of my site. When you click on the child element of the menu, the li tag adds a current_page_item class to the li tag. When you land on the page its the parent page ...
0
votes
1answer
79 views

Preventing PHP Execution in Parent Theme

I have set up a child theme to make custom changes to my site without having them erased every time I update. One change is to remove a wrapper that displays the title of the page with a lot of white ...
0
votes
0answers
36 views

Pages redirecting to homepage

I have run into an issue with pages on my site. All pages, except child pages redirect to the homepage. I have reset the permalinks several times, so I don't think that is the main issue or concern. ...
0
votes
4answers
616 views

Check if is on child-page of a particular page

I am trying to output a logo depending on which page is being viewed. <?php if ( is_page('home') || is_page('services') ) { ?> <div class="col-md-2 col-sm-4"> <?php ...
0
votes
1answer
185 views

Display title of child pages in shortcode

I'm having a hard time figuring out how to display the title of the childpages as the id of a div. Assuming that 'news' & 'othernews' are siblings of the parent page home (39) I want something ...
0
votes
0answers
40 views

Showing main menu and child menu in diffent places in a same page

This question may sound a bit novice, but I am facing a problem. I have a menu structure like this: Home About -History -kontact Posts -Category1 -category2 For design purpose, I have 2 different ...
0
votes
1answer
33 views

Elegant way to signify inheritance and relationship between posts

Let's say I have a weekly podcast, that I use WordPress as my CMS, and that I use LibSyn to host my media. This podcast is one hour long, and includes several "special" content segments that I also ...
-1
votes
2answers
828 views

List of pages - AJAX load more

I apologise if this is an extraordinarily broad question, but I am getting a little lost. I am using the below to show child pages (note: I am using Advanced Custom Fields) <?php /** * ...