Nothing found in archive tag page from simple-tags-3.0.4 to 3.6.5

[ad_1]

Hi, I have a problem after upgrading from an old version, 2.4.7 to the latest installable version with php 7.0, simple-tags-3.6.5, when i click on tag, for example “exampletag”, at nothing found. However, the count of pages with the “exampletag” tag in the backend is correct. I reinstalled many old versions, the last working one is simple-tags-303, from simple-tags-304 version, when taxonomies were introduced it doesn’t work anymore. In taxonomies > tag -> post types I added “pages” as suggested several times in the forum where I looked for a solution but didn’t find it. The query performed on the db is as follows:

SELECT SQL_CALC_FOUND_ROWS prefixtable_posts.ID
FROM prefixtable_posts LEFT JOIN prefixtable_term_relationships ON (prefixtable_posts.ID = prefixtable_term_relationships.object_id)
WHERE 1=1 AND (
prefixtable_term_relationships.term_taxonomy_id IN (59)
) AND (((prefixtable_posts.post_type = ‘post’ OR prefixtable_posts.post_type = ‘page’) AND (prefixtable_posts.post_status = ‘publish’
OR prefixtable_posts.post_status = ‘private’)))
GROUP BY prefixtable_posts.ID
ORDER BY prefixtable_posts.post_date DESC
LIMIT 0, 10

Why is the setting in Taxonomies -> tag -> post types ignored?

I think should be:

SELECT SQL_CALC_FOUND_ROWS prefixtable_posts.ID
FROM prefixtable_posts LEFT JOIN prefixtable_term_relationships ON (prefixtable_posts.ID = prefixtable_term_relationships.object_id)
WHERE 1=1 AND (
prefixtable_term_relationships.term_taxonomy_id IN (59)
) AND (((prefixtable_posts.post_type = ‘post’ OR prefixtable_posts.post_type = ‘page’) AND (prefixtable_posts.post_status = ‘publish’
OR prefixtable_posts.post_status = ‘private’)))
GROUP BY prefixtable_posts.ID
ORDER BY prefixtable_posts.post_date DESC
LIMIT 0, 10

I have tested on my remote server and local server, all other plugins deactivated, nothing change.

Thanks for the help

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer