I have found today this little plugin and I checked the code. I think there is a little improvement in one of the filters.
I post it here, just in case someone can give me feedback on the code.
It seems to work for me. I have assigned the same category to post and pages and the pages are listed in the category page.
// error_log($wp_query->get(‘post_type’));
if ( empty($wp_query->get(‘post_type’)) || $wp_query->get(‘post_type’) === ‘post’){
if ($wp_query->get(‘tag’)) $wp_query->set(‘post_type’, [‘post’,’page’]);
// category query
if ($wp_query->get(‘category_name’)) $wp_query->set(‘post_type’, [‘post’,’page’]);
}`
I modified the hook ‘pre_get_posts’ to set post_type only for post type ‘post’ or ’empty’ and sets only two post types. Otherwise it does the same for different post_types as menus and other post types (Contact Forms) that share ‘posts’ database.
Un-comment the error_log line to see how many times the hook is called.
Wordfence is now warning that this plugin is “abandoned”, although it is still working for me on WP 5.9.3.
]]>In the Pages view, I select a page (or multiple pages), Edit from the Bulk Actions dropdown, Apply which opens the Bulk Edit dialog, select a category, Update. The result is an “Invalid post type” error.
However, if I select Quick Edit for the page and the same category, the Update works.
I’m using WP 4.9.9
Any solution?
Tom
]]>Is plugin PHP 7.2 compatible?
]]>Hi,
Seems to be not working from a few weeks now. Trying to update tags doesn’t work. Nothing happens, tags cant be removed or added any more.
pls help
thanks
]]>We were having problems seeing any categories in the standard WordPress feed:
/category/catname/feed.
We disabled this plugin and the problem went away.
Any fixes for this?
]]>THis is a great plugin and I want to keep using it. I suggest an update so people like myself can keep using it.
]]>How to show tags on page. Each page has unique tags. I want to display them in the footer
]]>Il plugin è compatibile con la versione 4.4.1?
]]>Is there anything out there which adds categories to pages only?
]]>Hello,
I’m looking for some code to list each page of a specific category in a page.
For a better explication, i would like something like “have_post()” fonction but to list pages and not post…
I hope you understood my request…
Sorry for my english and thank’s for your help.
]]>