Questions tagged [children]
The children tag has no usage guidance.
130
questions
0
votes
0
answers
14
views
Query for posts belonging to multiple categories
Within the default Post categories I have
A parent category Cities
-- City A
-- City B
-- City C
A parent category Beauty
-- Hairdressers
-- Pedicure
A parent category Sightseeing
-- Archeological
-...
0
votes
1
answer
423
views
Query to Exclude Child Pages from Custom Post Type Archive
I have a hierarchical custom post type called "Services". On the Services archive page I want to display only parent Services and exclude child Services.
I found similar answers to my ...
0
votes
1
answer
518
views
check if current page is a child of a specified top level page
I am writing some code that will embed a chat bot to specified pages on my site. I have a function/shortcode that accepts 2 parameters, include and exclude. The value of each can be a single post ID ...
1
vote
0
answers
249
views
WP_Query with meta_query for children
I'm using WooCommerce and it has a lot of plugins to handle different stuff.
The one thing needed by the client that no other plugin manages correctly is which variations can be visible for each user ...
0
votes
1
answer
92
views
wp_list_pages two columns
I have a piece of code that splits my wp_list_pages navigation into two columns:
<div id="head">
<ul>
<?php
$page_s = explode("</li>",...
0
votes
1
answer
1k
views
Get first level children of a page ID
I am looking to get immediate children of a page ID.
I tried below code, but it does not seem to work
$pageIDchild = get_pages(
array (
'parent' => 0,
'child_of' =>$pageID,
...
1
vote
2
answers
504
views
How to target a specific custom post type post and its all children and grandchildren?
I will really appreciate your help to create a function that will check by a given $my_custom_post_type_name and $post_name and return true if the current page / post is a $post_name or $...
0
votes
2
answers
27
views
Show children connected to parent pages
Can someone assist with a function code that displays children on a parent page.
I have breadcrumbs for when standing on child page going back to parent but,
I need standing on parent page to ...
1
vote
0
answers
29
views
Taxonomies on custom taxonomies
I have a custom post type with multiple custom taxonomies. I need those taxonomies to have a relationship as well. The trick is, I need a child to be able to have multiple parents. I understand that ...
0
votes
0
answers
294
views
wordpress custom menu - show parents, siblings, children depending on depth
looking and trying for hours to find a solution for the following output of a wordpress custom menu. Hope you can help. I do not know where to start: custom menu walker, css, functions.php
I have a ...
0
votes
1
answer
1k
views
Walker class for sub-menu with ACF fields
Firstly, I'm wondering if this is the best way to even do this.
I have a basic nav, one item has children.
The children need to be wrapped in a container div and each child needs to pull some ACF ...
0
votes
2
answers
967
views
Menu walker: how to tell if a sub menu contains submenus?
I mean:
<ul>
<li>
<ul class="sub-menu">
<li>
<ul>
<li></li>
<li></li>
<li></li>
...
0
votes
1
answer
263
views
How to show children terms even if they are empty
First of all im not good at PHP so it might be the problem... So after trying to do what I want without success I want to ask our help. For most of you probably it will be easy as eating breakfast.
I'...
0
votes
1
answer
531
views
Child and Parent Pages list of sub pages
I have a parent page called services with children, each service child has child pages within it.
On the first level child page i want to show all of the pages below it in. When i click through to ...
1
vote
1
answer
2k
views
How to display only the direct children of a term on a taxonomy page
I would like to have a couple of (automatically generated) taxonomy pages created by term name, term description and a listing of only the next level of subterms. (No parents and no grandchildrens)
I ...