The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
787 views

Wordpress Child Category Display All Posts

I am creating a Wordpress page where all my posts in the child categories of team are displayed in a grid. I got this working with the below code. The formatting and general layout is great however it ...
0
votes
2answers
239 views

Get ID of child from child slug, while knowing parent ID

I have a hierarchy that I need to get data from. It's the child (by slug name) that I need to get while already having knowledge of the parents. Highest Known Parent Page (slug : 'parent') |_ Child 1 ...
0
votes
0answers
21 views

Force Category Sidebar To Show Just One Level Sub-category?

Here is an example of normal categories displayed in the sidebar: - MAIN 1 -- Sub One --- Sub Sub One --- Sub Sub Two -- Sub Two - Main 2 -- Sub Two This is the default structure. Here is ...
0
votes
1answer
243 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
79 views

Display Categories or Subcategories with name & description in category.php in wordpress

I have the following issue for my customer. Can some suggest a possible solution to this issue? This website has Categories & Subcategories Cat1 -Subcat1 -Subcat2 -Subcat3 Cat2 -Subcat1 ...
0
votes
2answers
341 views

Create subpage - filter parent pages list

I have a website here with a lot of content and with the content where is necessary to create pages in hierarchy. But it is uncomfortable to go through the dropdown in the administration with a lot of ...
0
votes
1answer
87 views

List child categories from parent category on custom taxonomy page

I making some updates to a theme I'm currently working on. I've moved a bunch of categories that have custom post items under them into a parent category that's all within a custom taxonomy. e.g.: ...
0
votes
1answer
16 views

Children Shortcodes?

I started creating WordPress plugins a few weeks ago, and I would like to know if it's possible to somehow "embed" shortcodes in some others. Basically what I want to do is create a table or a list, ...
7
votes
4answers
209 views

How can I hide children of draft pages using wp_list_pages()?

I'm displaying a simple sitemap with wp_list_pages(); $args = array( 'sort_column' => 'menu_order', 'title_li' => '', 'post_status' => 'publish' ); wp_list_pages( $args ); ...
0
votes
1answer
966 views

Displaying Custom Taxonomy Children in Dropdown

I have a question I hope you can help me with. I have a custom taxonomy called locations and on the first level I have the areas (Asia, Europe, etc) and under each area I have countries (England, ...
1
vote
1answer
83 views

Show only first children level of current category?

I wish to display only first level of subcategories on current category page (if any). I tried this code: <?php $args=array( 'child_of' => $cat-id, ...
1
vote
2answers
556 views

How can I automatically add child pages to pages in a WP menu?

In the WP menu creation GUI there's the Automatically add top level pages option. I would like to do the opposite, for any page that is in the menu, automatically add it's child pages. Is there a way ...
0
votes
1answer
23 views

1st Level Page with No Children

I have a website (http://sfa.uconn.edu/) that displays left menu with a list of child pages on any parent page (and its children), like this: However, I would like to hide this functionality from ...
2
votes
1answer
141 views

Check if a post is in any child category of a parent category

In a site I'm developing, I have the following category structure: * movies (parent) * thriller (child) * comedy (child) * drama (child) The current post is in the comedy category. The ...
0
votes
1answer
79 views

How to customize taxonomy archive template files for subterms?

I have a taxonomy called "location" where I have the term "Asia" and the sub-term "Thailand". Now I created the taxonomy archive template file according to the Wordpress Codex, which is working in ...
-1
votes
2answers
57 views

How to retrieve posts from parent category, splitting them per children when displayed?

I have a Wordpress database with three categories: ID 3 : Europe ID 4 : France (child of 3) ID 5 : Paris (child of 4) I now need to display all posts under their respective category, like this: ...
1
vote
0answers
12 views

'Create New Child Post' from Parent Post using a button - not using Attribute drop-down

I have a custom post type "my_custom_post_type" which contains posts using a grandparent > parent > child hierarchy. I am currently using the 'Attribute' drop down to assign a new post to a parent ...
1
vote
2answers
206 views

Showing current subcategory

I have problem. <?php query_posts('category_name=events&posts_per_page=2&offset=1'); ?> <?php while (have_posts()) : the_post(); ?> <div> <?php $children = ...
0
votes
2answers
109 views

How to make child categories recognize parent's template displays

I'm using the Default Post Type post for various purposes. To sort them I'm using different categories. And I'm designing different category layout using the slug preference, like: category-book.php, ...
0
votes
2answers
33 views

How to print the current post depth as update notification?

I need to find a simple if-condition to print the current post-depth for parents as an update notification. The following code in the functions.php is not working, it is resulting in "0" for all ...
0
votes
1answer
31 views

Displaying direct children of other pages on homepage

I am trying to display the DIRECT children of another page on the homepage but I can't seem to get it working it just shows all of the page titles on the site.. It needs to be within a wp_query as I ...
0
votes
0answers
51 views

Automatically add another subpost of the same parent when a subpost is saved

I figured it out how to add one subpost when a post is saved. But now I need to know how I can get another subpost of the same parent when a subpost is saved. Could anybody help me out? This is what ...
1
vote
3answers
103 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 ...
1
vote
6answers
3k views

Prev/Next child navigation for current page?

How can I get a Previous / Next navigation that only navigates the child pages of the current page? By that i mean url.com/page/child1, url.com/page/child2 and so on.. I've been searching around ...
0
votes
2answers
703 views

Delete Child Posts

I'm trying to delete all child posts when the parent is deleted. The parent post deletes just fine, but the child posts are not properly deleting. Here's the code I have in place now: $args = ...
0
votes
1answer
71 views

“Static” Child Menu with Accordian

I'm looking to create a child menu and none of the examples in the Wordpress codex seem to do what I'm trying to create. I have a main horizontal nav bar, which is fine. When clicking on a top-level ...
0
votes
1answer
64 views

Need a conditional to test if title of parent page matches title of child page

In my main loop, I need to incorporate proper html markup into a conditional to test if title of parent page matches title of child page and do (or do not) display certain content. Default might be ...
0
votes
0answers
319 views

How to show only subcategories in parent category not parent category?

I just want to show only subcategories of specific parent category on parent category page. I have 1 parent category videos and 3 child categories art,funny,and technology of that parent. I didn't ...
0
votes
1answer
54 views

How do I sort post listing by child post count?

I have two custom post types called questions and answers. The questions list includes a custom column which displays a count of the answers for each question. I need to be able to sort the listing ...
0
votes
1answer
34 views

Children categories not shown in dashboard

First of all: it's a strange behavior, but it works. 1) I'm working on a script, so i require the wp-load.php and after that i operate; 2) The scripts creates some categories using wp_insert_term in ...
0
votes
1answer
74 views

Differentiate Parent & Child of Custom Taxonomy

I use Custom Taxonomy "Artists" to differentiate between "Albums" (Parent Taxonomy) and "Albums" (belonging to an Artist, Child Taxonomy). I am showing my taxonomy on posts for users to see which ...
0
votes
0answers
42 views

wp_list_pages isn't creating .children ul in one instance

I'm trying to build a menu on child pages that is structured like this Grandparent Parent Current Page child page child page Item 2 Item 3 Item 4 For one set of parent and child pages ...
0
votes
2answers
182 views

List of child custom post types lists all custom post types

Several of my pages have some "posts" of custom post types as child posts. On these pages I want to list all of the child posts. Therefore I have this code: <?php $page_id = ...
0
votes
0answers
55 views

Wordpress Programmatically create subpages when a certain page template is used

I've been fiddling for quite some time now but can't seem to figure this out. What I am looking for is this: One creates a page and set it to use a certain page template, say: "Shop Owner" WP ...
0
votes
1answer
150 views

List post from current taxonomy children

I have a custom post type and a taxonomy with children, with a template file named taxonomy-productcategories.php. On this i want to list all children with their posts. Child taxonomy 1 Child ...
10
votes
3answers
3k views

Custom Nav walker display current menu item children, or siblings on no children

I've been messing around / searching for hours and still can't get this to work, so i'm finally giving in and asking for some help. I'm trying to write a custom walker that shows only the current ...
0
votes
0answers
15 views

Showing parents of taxonomy terms associated with a post OR showing only bottom-level terms associated with a post

I have a custom taxonomy structure associated with a custom post type on my Wordpress site (selling sheet music): It's something like this, to give some context: Flute ensemble 3-part flute ...
0
votes
1answer
76 views

Don't repeat posts from children in parent taxonomy query

I have a query on a page and I want to prevent it from returning posts in the parent term that have one of the child terms of the parent. For example: Parent 1 Child 1 Post 1 Post 2 NOT Parent ...
1
vote
2answers
207 views

get_term_children returns WP_Error for custom taxonomy

What I'm working on is a ajax based dropdown option form which returns child terms based on the option selected. When the option is selected, a function is fired using onchange, where the script ...
0
votes
1answer
287 views

Custom Post Type children and grand-children in one list

So, here is the story: i made a product catalogue with 3 custom post types: - Product - Filegroup (Child of Product) - File (Child of Filegroup) When on product page it should show a ...
0
votes
0answers
30 views

list first post of Child Category on Category page

This may be a bit overcomplicated but this is exactly what my client is asking for and if there is anyway to accomplish this task it would be much appreciated. I've found lots of examples of just ...
-1
votes
2answers
145 views

query only direct child and sub-terms of a current term archive

i'm using woocommerce on my theme, and it comes with a proudct_cat term as a defualt catagory on the shop proudct. I need to show on every proudct_cat archive its direct child and the sub-tems, but ...
0
votes
2answers
94 views

Page to output sub-pages (children)

I want to output all sub-pages of a particular page in a neat ul li list. Including: featured image, title, and first 50 characters of page content. I'm very new to Wordpress, I've tried reading ...
-1
votes
2answers
565 views

Differentiate Between Parent & Child Categories

So I'm working with a non-wordpress theme called "Misty" and it uses this code to pull categories: <li class="sidebox"> <h3><?php _e('Categories','ml'); ?></h3> <ul ...
0
votes
3answers
678 views

Taxonomy Drill-Down / Plugin Help - hierarchical queries within plugin?

I hope this question doesn't make me look too stupid! I am using a plugin called 'Query Multiple Taxonomies' -- it's a fantastic plugin and is written extraordinarily well. ...
0
votes
0answers
33 views

How to include child terms within parent?

I have the following for a specific term ID: <?php if (!is_tax( 'listing_category', '542' )) { ?> test1 <?php else: ?> test2 <?php } else { ?> This works great for making ...
-2
votes
1answer
108 views

How can I structure my pseudo footer nav code with wordpress codex code?

I'm building my first fully custom wordpress theme, and I'm starting to pull hairs out while trying to write the dynamic footer code! I've tried a bunch of codex this and codex that but can't seem to ...
0
votes
2answers
94 views

Get all children titles of a page as a link to them

I want to pull all the children titles of certain page and put them as a link. This is what i got so far: $my_wp_query = new WP_Query(); $all_wp_pages = ...
2
votes
3answers
7k views

Show just one level of child pages, wp_list_pages woe

I'm working on a site that has a fairly large page structure a few levels deep - in some sections there are a lot of pages. The basic setup is something like this... Parent Parent Parent -Child ...
0
votes
1answer
49 views

List CPT by menu_order with children right after parent

I registered a custom post type drawer where my posts are ordered using menu_order. Each drawer could be a child of another drawer, on a multiple depth (parent > child > child of child > child of ...