Cannot get pages in category
-
Is there a way to get a list of pages in a category?
I have one post in the category, and one page. I’ve tried every combination I can think of with get_posts, but I can only get the post back and never the page.
get_posts(array('category' => 50, 'page_type' => 'page'))
get_posts(array('category' => 50))
get_posts(array('tax_query' => array(array('taxonomy' => 'category', 'field' => 'id', 'terms' => 50))))get_pages doesn’t have a category parameter so that doesn’t help.
Nothing I’ve tried will give me back that page.
I’m using version 1.3 of the plugin.
https://ww.wp.xz.cn/plugins/post-tags-and-categories-for-pages/
The topic ‘Cannot get pages in category’ is closed to new replies.