Skip Navigation

[Resolved] Showing Custom Posts Counters inside Tab Labels

This support ticket is created 6 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by theW 6 years, 8 months ago.

Assisted by: Minesh.

Author
Posts
#624437
LAYOUT.png
MP.png

Hi

I have a Layout with a View where the current logged in user sees all the Custom Posts they have created.

This is a Loop that displays basic info. One of the info being a Dynamic Post Counter, which adjusts if-self any time a new Project is either Created or Deleted.

There are 4 tabs:
- 1 showing All Custom Posts (projects).
- 3 with extra filters on them by "Status" (a custom field by Types)
<p>[wpv-view name="my-projects" status="funding"]</p>
<p>[wpv-view name="my-projects" status="open"]</p>
<p>[wpv-view name="my-projects" status="closed"]</p>

See screenshot "Layout.png" attached

Tell us what you are trying to do?
I would like to move this dynamic counters from inside the View and place them in the LAYOUT Tab LABEL.
So they Can Read:
All (#) - Funding (#) - Open (#) - Closed (#)

Is there any documentation that you are following?
Found none so far.

Is there a similar example that we can see?
Yes, the perfect example is here:
hidden link

What is the link to your site?
hidden link

#624582

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - there is no such feature exists to add numbers to tabs but you may try to achieve this using custom Javascript/JQuery by updating the required html element with desired count.

#624733

Ok, Thank you