Skip Navigation

[Resolved] Shortcode in Divi Counter Module not working

This support ticket is created 7 years 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
- 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+00:00)

This topic contains 2 replies, has 2 voices.

Last updated by toolset-dave 7 years 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+00: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.