Skip Navigation

[Resolved] Shortcode in Divi Counter Module not working

This support ticket is created 6 years, 10 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+01:00)

This topic contains 2 replies, has 2 voices.

Last updated by toolset-dave 6 years, 10 months ago.

Assisted by: Nigel.

Author
Posts
#591330

Hi, I tried to place shortcode into Divi Counter Module (hidden link) as a number.
Both versions are not working:

[wpv-view name='my-number']
{!{wpv-view name='my-number'}!}

or

[my-post-count]
{!{my-post-count}!}
#591450

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Hi Dave

I registered the simplest of shortcodes to test this:

add_shortcode( "number-six", function(){

	return "6";
});

It simply outputs the number 6.

I tried using that in the Divi number counter module and, no, it doesn't work.

The module clearly doesn't parse shortcodes, so it is expected that Views shortcodes will not work.

I would try contacting Divi support and asking them if there is any way you can add a snippet of code that will trigger the parsing of shortcodes in that module, or if there is a PHP filter that can be used to set the value dynamically.

#591781

Ok, thanks. I will try to contact them.

This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.