• Resolved ahranalytics

    (@ahranalytics)


    Hello Im wondering if the plugin could show counts of a taxonomy of a certain post type.

    For example I have a custom post type of City Council Ordinance then I have a taxonomy of Principal Authors, I want to show the count of that specific taxonomy post count see the screenshot. Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jeff Starr

    (@specialk)

    If I understand correctly, you can use the [sbs_tax_posts] shortcode, for example:

    [sbs_tax_posts tax="taxonomy" terms="term-1, term-2, term-3" type="custom-post-type"]

    This is explained in the plugin documentation, just fyi.

    Thread Starter ahranalytics

    (@ahranalytics)

    Hi Jeff,

    Thanks for responding, however it’s not working. I’ve already seen the documentation before I posted my question here.

    My taxonomy is principal_author, and the term would be ernesto-jong-isip-jr. Therefore I used [sbs_tax_posts tax=”principal_author” terms=”ernesto-jong-isip-jr” type=”custom-post-type”] and the output is zero. Am I doing it correctly?

    Plugin Author Jeff Starr

    (@specialk)

    The only thing I can think of is that one (or more) of the attribute values are incorrect. So double-check that the taxonomy, terms, and post type slugs/IDs are spelled correctly.

    Thread Starter ahranalytics

    (@ahranalytics)

    I just want to show my users the stats of what I encircled in the screenshot.

    I just used the right tax name, example:

    [sbs_tax_posts tax=”principal_author” terms=”benny-fog-t-abante-iii” type=”custom-post-type”] and still returned zero. I can assure that I spelled this correctly.

    • This reply was modified 1 year, 9 months ago by ahranalytics.
    Plugin Author Jeff Starr

    (@specialk)

    I understand but am stumped, not sure what else to try. The shortcode is working fine for my tests on default WordPress 6.2. So maybe there is something interfering with normal functionality, could be another plugin or maybe something the theme is doing. Best advice is to do some basic troubleshooting, I would be glad to provide a guide if it will be useful for you.

    Plugin Author Jeff Starr

    (@specialk)

    Hi @ahranalytics, just wanted to follow up with this. It’s been a while with no reply, so I hope the issue is resolved? Or if there is anything I can do to help, please let me know. Thank you.

    Plugin Author Jeff Starr

    (@specialk)

    Hey @ahranalytics, I hope you got this sorted. It’s been a while with no reply so gonna go ahead and mark this thread as resolved to help keep the forum organized. Feel free to post again with any further questions or feedback, Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Show count of specific post of a taxonomy’ is closed to new replies.