Hi,
How is the counting done?
Results are consistently incorrect for my site.
I’m not a coder and wonder how one could change this plugin into one that displays the number of a certain tag?
]]>The plugin is easy to use but it doesn’t have its own class so it is hard to style. It would be nice if this was added.
]]>I tried to use the “Display Category Post Count” plugin, because it offers the service I need.
In order to get it work on my WP 5.2.x-Installation I had to change the Source-Code (thanks for OpenSource) of the plugin (category-post-count.php) on my WP-Server to match the database schema in the following way:
ORIGINAL:
$get_query = $wpdb->get_results(“SELECT * FROM {$wpdb->prefix}terms terms INNER JOIN $wpdb->term_relationships terms_rel ON terms.term_id = terms_rel.term_taxonomy_id INNER JOIN {$wpdb->prefix}posts post ON post.ID = terms_rel.object_id WHERE terms.name = ‘”.$cat_name.”‘ AND post.post_status = ‘publish’ AND post.post_type = ‘”.$post_type.”‘”);
NEW:
$get_query = $wpdb->get_results(“SELECT * FROM {$wpdb->prefix}terms terms INNER JOIN {$wpdb->prefix}term_relationships terms_rel ON terms.term_id = terms_rel.term_taxonomy_id INNER JOIN {$wpdb->prefix}posts post ON post.ID = terms_rel.object_id WHERE terms.name = ‘”.$cat_name.”‘ AND post.post_status = ‘publish’ AND post.post_type = ‘”.$post_type.”‘”);
Please make sure that my change solution is included in the official repository!
]]>