Link category to page, enable parent class in wp_list_pages
-
Hi everyone,
I’d like to show/display posts of a category, as children of a page (or sub-page), maybe logically linked to that category.Here is an example:
- Page 1
- Sub-page a
- Sub-page b
- Page 2
- Sub-page X
- Sub-page Y
- Page 3
- Sub-page I
- Sub-page II
- Page 4
- Sub-page i
- Sub-page ii
For example I need to link Sub-page II to a specific category named Category XYZ.
Plus, while displaying a post (or a posts list) of Category XYZ, I need that wp_list_pages appends the current_page_ancestor and/or current_page_parent class to the Sub-page II list item.Thanks in advance,
Alessandro Raffa
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Link category to page, enable parent class in wp_list_pages’ is closed to new replies.