restricting to selected parent category
-
This is not a support question really, just a request/suggestion I guess.
I had the need to only list hierarchical cats/posts from a certain sub_cat onwards.
However, instead of setting a ton of exclude_cats id’s (which might also have had to change over time) I thought it might be better idea to actually be able to set a parent id to start off withso after line 18 I inserted
$parent_id = !empty($atts['parent_id']) ? (int)$atts['parent_id'] : 0 ;
and change line 32 from
0
to$parent_id
which now does exactly what i need it to do when adding the attributeparent_id=[someid]
to the shortcodeit’s just an idea. maybe you want to add this at some point. just thought i’d pass it on
cheers
- The topic ‘restricting to selected parent category’ is closed to new replies.