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)
Hello –
When the next plugin update will come out?
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)
Hello –
Until then, isn’t there a method to modify the code to not to display “products”.
TY
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.
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.
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.
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)
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.
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.
That looks correct, does it not work?