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....
Imagine i have a URL structure like this: www.domain.com/category/subcategory/ This is my code: <?php $args=array( 'child_of' => $cat-id, 'hide_empty' => 0, 'orderby' => 'name', 'order' => 'ASC' ); $categories=get_categories($args);...
I’m using Greg’s Threaded Comment Numbering plugin to number the comments. Actually I’m displaying a number beside of each parent comment (no threaded comments numbers). I have 2 problems...
Not sure if this is possible without some form of hard-coding but I have a custom post-type called ‘city’. Within the ‘city’ post-type I have some parent post (e.g....
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...
This if-condition is what’s giving me trouble: if (div id=myfav has children) { do something } else { do something else } I tried all the following: if (...
I’m looking for a way to only allow users to create new subpages once there are nine pages that are parents/root pages. Once there are nine parent pages when...
I created a hierarchical custom post type for a gallery. The parent pages are the galleries and the child pages are the albums. I want to display the most...
I need to know how can I get the child/grandchild terms of the current taxonomy being viewed, and put it into a drop down so that I can add...
I was wondering, JavaScript offers a variety of methods to get the first child element from any element, but which is the best? By best, I mean: most cross-browser...