The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
6 views

How do I get rid of links to child pages at top of page?

As seen here: www.soaringwingchun.com/wing-chun-students-library there are always links to the child pages at the top of any page. How do I remove these?
0
votes
0answers
6 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
16 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 ...
0
votes
1answer
268 views

Query in a Hierarchical Custom Post Type for Children vs Siblings

I have a custom post type with two levels of pages inside of it. the parent level we'll call parent, and child - child. The parents need to be able to pull in their children, and the children need ...
0
votes
1answer
258 views

How to use wp_list_pages on a grandparent page

I am using wp_list_pages to show the page structure on a website. For instance, if I use this code, it will show me the complete child / grandparent heirarchy of the current page the user is on: ...
2
votes
2answers
2k views

Remove parent slug for child pages

I'm looking for a plugin/custom function that removes the parent slug of a child's page permalink. Something that automatically changes the permalink for child pages. Example: ...
1
vote
1answer
29 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?
1
vote
1answer
1k views

List child pages by slug not ID?

I am looking to use the wp_list_pages function to show children pages of a specific page ID. I was able to do this easily, but now I found an issue with it. I am running a Wordpress network of sites ...
0
votes
1answer
74 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
23 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 ...
-1
votes
3answers
135 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
24 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
4answers
42 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
0answers
17 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
1answer
24 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
14 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
22 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
1answer
97 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
21 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": ...
3
votes
1answer
774 views

Keeping parent menu items active in child pages

I'm a begginer in php and css. I would like to know how to keep an top-menu item underlined while navigating on child pages. Here is my layout: I have a navigation menu, listing all my parent pages ...
0
votes
0answers
34 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
36 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
119 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
731 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
1answer
43 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
11 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
27 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
87 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
20 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
72 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
32 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
16 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 ...
0
votes
2answers
521 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: ...
2
votes
3answers
147 views

Page as a child of a Custom Post Type

I have a custom post type called "Professions", it contains different professions and info about them. To show them I simply use a content-profession.php -file. The thing is that I need subpages ...
0
votes
3answers
57 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
31 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
1answer
48 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 ...
0
votes
0answers
50 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
76 views

404 error on second page load for child-pages

I have a strange problem which I really do not understand: My site has the page community and a sub-page called test. Permalink structure is set to /%postname%/ So the URLs for the pages are: ...
1
vote
0answers
27 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
2answers
810 views

Display child pages on a parent and child page using Featured Thumbnails

How would I display a list of my child pages using featured images on a its parent page as well as its other siblings child page? For example, if my parent page is called 'Music', I'll have my main ...
0
votes
1answer
47 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 ...
3
votes
2answers
1k views

How can I programmatically create “child” pages on theme activation?

I know how to create pages automatically when a theme is activated, but I need help to figure out how to also programmatically create child pages at the same time. For example: - Page 1 - Page 1.1 ...
2
votes
1answer
455 views

Automatically create child pages when saving a (parent) page

I have a bit of a tricky one... I have a hierarchical Custom Post Type ('shows') that represents events. Is it possible for the user to create a new page (ie show), save the page and for Wordpress to ...
1
vote
3answers
134 views

Multiple Conditions for Child Page Title

I've been trying to work with Conditional Tags and cannot wrap my head around this problem. PHP novice here. On sub-pages I need to display the parent page title as well as the page title. I have it ...
0
votes
1answer
66 views

How to list a page tree?

I have this structure for example: Page 1 Sub-Page 1.1 Sub-Page 1.1.1 Sub-Page 1.1.2 Sub-Page 1.1.3 Sub-Page 1.2 Sub-Page 1.2.1 Sub-Page 1.2.2 Sub-Page 1.2.3 Page 2 ...
1
vote
1answer
90 views

Injecting a custom sql query into a page/theme

I have written a custom sql query for our WordPress website (fairly elaborate and not achievable with the standard wordpress code) and I've got it to run via $pageposts = $wpdb->get_results($query, ...
2
votes
0answers
395 views

Create child page within custom post type

I want to be able to have a link like this, site.com/my-custom-type-slug/single-custom-post-name/stats/, where /stats should contain the /my-custom-type-slug page content and when I add content to the ...
0
votes
1answer
164 views

Adding title and description to subpage's featured image

Hej! I have a subpage to display it's subpage featured image. I would like to add the title and description to beneath the thumbnail. Today my code look like this > In the functions.php function ...