• Resolved Tama

    (@tomiqa)


    Hello!

    I’m selling images with Woocommerce

    I like to print the current product number in the footer

    I wan’t to change the “product” word to “image” e.g. 4044 image an counting

    On the dashboard of your plugin I see “667 Media” (the current amount I have)

    The media term is coming from Symbiostock. This plugin’s products called media.

    When I print the [sbs_cpts_count] shortcode, I got the word “products”, I like to change that to “image”

    Any idea?

    The page I need help with: [log in to see the link]

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

    (@specialk)

    Hi @tomiqa, the current version of the plugin outputs the name of the registered CPT along with the number of posts. I think it would be useful to be able to output only the number, so that you can add whatever text/label makes sense. I’ve added to the to-do list and should be able to get it added into the next plugin update. Thank you for the feedback.

    Thread Starter Tama

    (@tomiqa)

    Thank you!

    • This reply was modified 4 years ago by Tama.
    Thread Starter Tama

    (@tomiqa)

    Hello –

    When the next plugin update will come out?

    Plugin Author Jeff Starr

    (@specialk)

    We usually update our free plugins before each new major WP release. So the next release planned for sometime before August of this year.

    Thread Starter Tama

    (@tomiqa)

    Ok, thanks!

    Thread Starter Tama

    (@tomiqa)

    Hello –

    Until then, isn’t there a method to modify the code to not to display “products”.

    TY

    Plugin Author Jeff Starr

    (@specialk)

    Not that I know of, but really anything is possible with WordPress. Feel free to dig around the code a bit. If you have any questions shoot em over.

    Plugin Author Jeff Starr

    (@specialk)

    Hi @tomiqa, just wanted to follow up with this. It’s been awhile 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 @tomiqa, I hope you got this sorted. It’s been awhile 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.

    Plugin Author Jeff Starr

    (@specialk)

    Hey @tomiqa, I am updating my plugins and had a chance to take a closer look at this. It turns out that you can achieve your goals using the txt attribute of the [sbs_cpt_count] shortcode.

    For example if you add this:

    <ul>
    <li>[sbs_cpt_count cpt="post" txt="Items"]</li>
    <li>[sbs_cpt_count cpt="page" txt="Things"]</li>
    <li>[sbs_cpt_count cpt="book" txt="Objects"]</li>
    </ul>

    The output will look like this:

    • 100 Items
    • 200 Things
    • 300 Objects

    So you can change the name that is displayed for each post type.

    Sorry it took so long to find a solution for this.

    Thread Starter Tama

    (@tomiqa)

    Great!

    Thanks!

    Thread Starter Tama

    (@tomiqa)

    I tried and it works fine.

    However it puts the output code in an <li> tag which I don’t need.

    Can I remove that list item tag somehow?

    • This reply was modified 3 years, 8 months ago by Tama.
    Plugin Author Jeff Starr

    (@specialk)

    Yeah you can remove the list tags and use whatever markup you want.

    Thread Starter Tama

    (@tomiqa)

    Hello

    Ok, but how?

    This is my code:

    [sbs_cpt_count cpt=”product” txt=”vector illustration”] and counting.

    Plugin Author Jeff Starr

    (@specialk)

    That looks correct, does it not work?

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘[sbs_cpts_count] change “product” word’ is closed to new replies.