Displaying a custom post type count
-
Hello,
I’m helping a friend with a website. I’m not really a developer and don’t know WordPress very well, but I do have some knowledge of HTML, CSS, and PHP.
The website is built using Avada (not by me) and provides legal-related Shakespeare quotes, with the quotes broken down to categories.
The quotes are in fact an Avada custom post type called FAQ (or avada_faq in the code, I believe) and to make navigate easier, I created a sort of a “tag cloud” in HTML and CSS that is added to each category page via a shortcode. It looks like this:
and the code looks like this:
I want to add the number of quotes (i.e. FAQs) in each category next to the category name in this tag cloud so visitors would have an idea how many quotes each category has before they go into it. For example:
I’m not quite sure where to being and how to incorporate this into the tag cloud, if at all possible, and would appreciate any assistance.
Thank you.
- This topic was modified 2 years, 7 months ago by . Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
The page I need help with: [log in to see the link]
- The topic ‘Displaying a custom post type count’ is closed to new replies.