-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Description:
After converting a category to a tag (or a tag back to a category) using the Category to Tag Plugin, the following issues are observed:
- The post count for the newly created tag (or category) shows as 0 in the dashboard, even though the associated posts are correctly listed on the front-end and in the query results.
- Clicking "View" for the tag opens the correct tag page, displaying all the associated posts.
- Clicking the 0 in the count column also displays the correct list of associated posts in the post listing screen.
- Reverting the tag back to a category results in the same issue—the post count in the dashboard remains at 0 despite the posts being properly associated.
Steps to Reproduce:
- Convert an existing category with associated posts into a tag using the plugin.
- Check the post count for the new tag in the "Tags" section of the dashboard.
- Click "View" and "0" in the count column to verify the behavior.
- Convert the tag back to a category and repeat the above checks.
Expected Behavior: The post count in the dashboard should correctly reflect the number of posts associated with the converted tag or category.
Actual Behavior: The post count remains 0 in the dashboard, despite the posts being properly associated and displayed elsewhere.
Environment:
Plugin Version: 0.6.3
WordPress Version: 6.7.1
PHP Version: 8.3.11
Any Other Relevant Information: This was observed in a clean WordPress 6.7 site with the default theme (Twenty Twenty Four) and no other plugins installed.
Additional Notes: The issue appears to be related to how the post count is recalculated or synced after the conversion process. A resolution to this issue would enhance the plugin's functionality and user experience.
Screenshots/Logs:
Link: https://cloudup.com/cTEy6sG3uiG
Screenshot from Plugin screen showing tag count of zero for category "Category 1" which was converted to tag (despite having 3 posts associated).
Link: https://cloudup.com/c_P0CYWOENS
Screenshot from Tags section showing newly created tag: "Category 1" showing a count of zero (despite having three posts associated)
Link: https://cloudup.com/cJeH-iXZLKm
Screenshot from posts page filtering posts from newly created tag: "Category 1" showing three posts (despite showing a count of zero).