Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter fergusga1815

    (@fergusga1815)

    The theme developer confirmed that:

    Job, places, events are all the same custom post type just different listing types.

    I am unsure then if I can pull the correct data based from this plugin, can you confirm?

    Plugin Author Jeff Starr

    (@specialk)

    Absolutely, the plugin provides a shortcode to display the count of any CPT. Here is an example:

    [sbs_cpt_count cpt="post" txt="null"]

    You can change “post” to the name of your custom post type. More details in the plugin documentation/readme.txt.

    Thread Starter fergusga1815

    (@fergusga1815)

    Hi,

    If I use your example it pulls a count of all the individual listing types:

    [sbs_cpt_count cpt=”job_listing”]

    The issue seems to be based on the feedback from the theme developer that they have a single custom post type ‘job_listing’ and within that specific ‘listing’ types such as cars, events, place, jobs…In my case I want to pull back a count of only one specific ‘listing’

    Plugin Author Jeff Starr

    (@specialk)

    Yeah not sure then. I can take a closer look for the next update. For now, maybe try experimenting with other CPT names/values and SBS shortcodes, etc. Hopefully something will work for your particular setup.

    nikkoboy

    (@nikkoboy)

    [sbs_cpt_count cpt=”job_listing” txt=”null”] worked great on my website: I could managed to extract the total count of listings. Would it be possible to extract one specific category within job_listing? Also, the shortcode only works when inserted within a paragraph. Is it possible to make these shortcodes work within menus, titles, etc?

    Plugin Author Jeff Starr

    (@specialk)

    “Would it be possible to extract one specific category within job_listing?”

    Not with the current version, sorry.

    “Is it possible to make these shortcodes work within menus, titles, etc?”

    The shortcode simply outputs a line of text. Should work anywhere that supports shortcodes. If that is not happening, it could be interference from another plugin/theme or could be a bug.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Custom Post Type’ is closed to new replies.