The tag has no wiki summary.

learn more… | top users | synonyms

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 ...
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
59 views

Organizing Your Pages

I'm having problems creating sub pages. So far I've followed the proper directions: Go to a new page, click the "Page Parent" drop-down menu. Select the appropriate parent Page from the drop-down ...
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
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
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
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
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
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
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
1answer
41 views

How to check if the current page's parent is one of 2 different ID's

I'm using this little snippet right now to check if the current page is the child of a particular page; $studies_parent = 5860; if ($studies_parent == $post->post_parent) { Which is working ...
0
votes
1answer
97 views

How to accomplish a child page navigation?

I'm not finding any info on this, so I'm probably wording it incorrectly in my search. So I'm hoping someone can point me in the right direction. I have 50 pieces of content that'll be going on my ...
0
votes
1answer
95 views

Get current post's child page?

Is it possible to find out what page a post is contained in? Im in my single.php template and im listing child pages in a sidebar using wp_list_pages, I want the page (not category) that the post is ...
0
votes
1answer
62 views

How to make in post Parent page children page list nummbered

Parent page veggies Its children pages are carrots peas potato How to put in post numbered list of Parent page? Maybe better how to make same list to be ordered by date posted so some ...
0
votes
1answer
85 views

Wordpress child pages not working

I am creating a wordpress CMS and I have added multiple pages under one parent page. I am generating the links for all the child pages of a page and then when user clicks on the links, they should be ...
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: ...
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
147 views

404 on child page template

I have a page called portfolio and I have created several child pages for it like Video page, audio page etc … I also created custom page template for portfolio and named its file ...
0
votes
1answer
81 views

WordPress Template works until page becomes a child

Ok so this is really strange. I do not consider myself a WordPress expert, but I am also not a beginner either. I created a template that works just the way I need it. Basically it checks for the ...
-1
votes
1answer
420 views

highlight parent page on menu when child page is on sidebar (and not on menu)

i'm using twenty-eleven, i have on the menu 4 items : Home, About us, Contact, Clients it's a custom menu. The site currently is on localhost, so no preview is available. However i haven't put the ...
-2
votes
1answer
21 views

How to Hard Set the Parent Page in Template

This template displays child pages of the parent page that calls it. I need to modify it to hard code the parent page to a specific parent, using the slug or other means. Once I know how to do that ...
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 ...
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 ...
1
vote
0answers
12 views

query pages by a childs publish date

I am currently working on a wordpress project and would like to know if its possible to query pages by a childs publish date? I currently only want to show the parent page so my arguments look like ...
1
vote
0answers
148 views

Query Pages and post excerpts dynamically

I have a custom home page, a blog page which includes a dynamic preview area of the latest 5 blogs, and some other miscellaneous pages. Im trying to design an "events" page where the main page has a ...
1
vote
0answers
67 views

Removing Parent Page URL While Keeping the Navigation Intact

So here is the current format: site.com/parent-page/child-page/ - example 0 Child-page is ranking higher than parent-page, which is not what I want. So, I have a solution. site.com/parent-page/ - ...
1
vote
0answers
122 views

Parent/child pages and link structure the right way

I've always wondered what's the best way to achieve the following with pages. Say I have a (part of a menu) that looks like this: What we do Design websites Develop websites SEO The 'What we ...
1
vote
0answers
682 views

Loop that displays PARENT PAGE & CHILD PAGE & outputs GRANDCHILD PAGE title and content

I've never posted here, but I'm tired of slapping code together. That said, I would be most appreciative if someone could help me with this. I need a page template that: outputs the PARENT PAGEs, ...
1
vote
0answers
309 views

List Posts For Terms Of A Custom Taxonomy For Any Post Type

The function is great and i am using this function with these filter to just display selected taxonomy term posts by id, but what result i am getting is like this Child Taxonomy 1 - Child Taxonomy 1 ...
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
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
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
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": ...
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
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
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
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
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
0answers
414 views

Custom Post Type Child Pages

I'm getting a 404 page when viewing child-pages of a custom post type. Right now I have a pages (let's call it 'Books') that displays every 'book', and in the menu have other pages listed under Books ...
0
votes
0answers
25 views

Change the Featured image for child posts

I have created two post type for my website ("product" and "variation"). Each variation has a feature image and their post parent is a "product" post. I would like to be able to change the different ...
0
votes
0answers
78 views

Subfolder index.php 404 Errors

I'm looking for help troubleshooting why subfolder pages return a 404 error if "index.php" is appended after the subfolder. I do not experience this behavior on other WordPress sites. I have inherited ...
0
votes
0answers
111 views

How can I give Wordpress child custom post type the same title and slug as its parent?

I have two custom post types, one is the child of the other (the parent is more of a modal post). I want the child post to inherit the same title and slug as its parent. I've tried to use the ...
0
votes
0answers
200 views

displaying child pages in columns when on a parent page

I would like to display sub pages in columns. Some parent pages have a lot of sub pages and the scroll is very long. I am currently using the below code to display sub pages. ...
0
votes
0answers
43 views

Detecting top parent category fails on home page

I have the following method to detect a top level category. But it fails on home page returning alway true. //detect parent category function in_parent_category($cats,$_post=null){ foreach ...
0
votes
0answers
75 views

Child Pages on Mobile/Touch Screen not clickable

I have child pages under parent pages in page menu/header, they work fine when using a PC, but I cannot get them to work when using a mobile phone or touchscreen device such as an iPad. I am using ...