Skip to main content

WordPress taxonomy terms and comments count showing zero after import

A client recently needed me to migrate a lot of posts and tags to WordPress from a different CMS.
After importing all of the tags and posts to WordPress, I noticed that If I went to the tags page, all of the tags were listed, but they were all showing as ‘0’ even though the tags were assigned to posts. This was specifically used for a custom post type and custom taxonomy.
Read More

How to sort posts alphabetically in WordPress

Sorting posts in WordPress is pretty easy. Though, looking on search, there’s so many different ways to do it, including the use of plugins.

I try my best to stay away from using plugins as much as possible (I don’t like plugin bloat) – so what I do is try and code as much as I can into the template I’m creating. I may want to use a certain type of sorting order for one archive of posts, but for another archive I might want a different type of sorting order.

Read More