The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
18 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
19 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
35 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
11 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
34 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 ...
2
votes
2answers
79 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
37 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
18 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
22 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
68 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
24 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
52 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
24 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
23 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
19 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
56 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
46 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
85 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
39 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
134 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
148 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
50 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
21 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
90 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
53 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
19 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
29 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 ...
0
votes
0answers
29 views

Duplicate content problem with parent slug

I have one page without a parent page attribute called "bar", with slug "bar": /bar/ I have child pages, for example "foo", which has the "bar" page as parent attribute and slug is "foo": ...
-1
votes
2answers
439 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 /** * ...
0
votes
1answer
332 views

404 on child page when parent page slug is identical to custom post type

The internet is swamped with this issue but all the results were from 2010-2011 so I wanted to check if there was any advancement in the matter. I have the following scenario: Created a custom post ...
0
votes
0answers
57 views

Displaying Custom Post Type on Page with Same Title

I'm building a sports blog. I have a custom post type called conference. Each conference post contains HTML that is displays the team logos horizontally on my team custom posts as shown in the ...
0
votes
1answer
64 views

Redirect page to default subpage

On a site that I'm working on I have a particular page that has four subpages, which act like process steps. I want the parent page to always redirect to the first of these as a default, should the ...
0
votes
1answer
241 views

wp-query, pull children of parent page

So here's what I'm trying to do: I'm trying to develop a theme that shows any sub-pages on the parent page. I've gotten this running successfully with a WP_query and a simple loop: <!--show sub ...
0
votes
1answer
50 views

Can a user find a child page?

When editing a page, instead of the expected content, all the user sees is this: [child-pages depth="1" sort_column="post_title"] How can the user find that page in order to edit it?
0
votes
1answer
13 views

Link to most recent child page

in the header of a website I am trying to link to the most recent child page of a particular parent page. I can't seem to wrap my head around how to accomplish this. Does anyone have any input on ...
0
votes
1answer
28 views

Page that links to category content

I have a page called: fruit...then I have three child pages called cherry, lemon, and peach. I also have a category called fruit, and three child categories called cherry, lemon, and peach. What I am ...
1
vote
1answer
222 views

Installing plugins and using complex folder structure with child theme in WordPress

I'm creating a new WP website based on a template, and I've created the child theme for this template. It is working without any problem. I understand the basics for a child theme as adding my ...
0
votes
1answer
24 views

Is there a way to dump all registered sidebar/widget?

I need to know the properties of sidebar and widgets I've added, is there a way to dump those? Thanks.
0
votes
0answers
95 views

How to slidedown and slideup child pages clicking on parent pages in jquery or javascript?

I have created a sidebar in wordpress in which all parent pages with subpages are listed. I have used following code in sidebar-left.php file and call this in template file. <div id="primary" ...
0
votes
1answer
58 views

Display Tags of Child Pages

I'm trying to display tags of child pages on the parent page. In my functions.php: // add tag support to pages function tags_support_all() { register_taxonomy_for_object_type('post_tag', 'page'); } ...
0
votes
1answer
18 views

Firing page_publish where page is child page

I'm having difficulty getting a function to fire when publishing a new page. I'd like it to fire when a new page is being published or edited but ONLY when that page has a parent. Here's what I've ...
0
votes
0answers
52 views

Autogenerateing associated page on parent custom post type publishing

Goal: Automatically generate a child page whenever a custom post type ive created is published. Creation (and publication) of the main post type is done using a frontend form using the ...
1
vote
1answer
2k views

How to display list of child pages of parent page in wordpress?

I have following format of menu. Treatment -Beauty --Services --Products -Surgery -washing I have followed follwed following link: How to Display a List of Child Pages For a Parent Page in ...
0
votes
2answers
838 views

Custom post type child page 404

This issue seems to be quite common, but the solutions that worked for others haven't worked for me. I'm using the CPT UI plugin and have created a CPT called 'courses' with the following settings: ...
0
votes
3answers
80 views

Deleted pages showing up when querying for child pages

I'm using the following code to display the featured image, post_title and custom field data from relevant child pages. <? $child_pages = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE ...
0
votes
0answers
40 views

Theme-Option-Panel: Select List of Pages, Childpages and Posts

I just can't solve this problem: in the wp dashboard I want the user to have the option of selecting between all pages, sub-pages and posts (also custom-post-types) for displaying them in special ...
0
votes
0answers
76 views

How to configure a child-post of a parent-post to have hierarchical sub-posts?

Question: What plugin or coding configuration needs to be implemented to create this child-post to parent-post hierarchical, many-to-many post relationship? Goal: To be able to create sub-posts of a ...
0
votes
1answer
51 views

How to finish this loop?

I had already asked a question of how to get only get the child pages of a parent page that belonged to a certain taxonomy. A very helpful user gave me the answer to this, however, I was not provided ...
1
vote
0answers
28 views

Weird behaviour on Edit Menus screen

I am running WP 3.9.1. Fresh install. ACF and Gravity Forms are the only two plugins running. Perhaps someone had this issue before... On the edit menu screen I have a tab called "View All" where I ...
0
votes
1answer
67 views

Can I make Wordpress use a custom template for a child page

I have a custom post type called communities. Then I have the appropriate single-community.php page. Works great! So we want to use some of these "communities" as parent pages. Then underneath them ...