Thread Starter
Graaf
(@graaf)
But when i copy the short code to a page, it works just fine and show what i wanted it to show.
Any ideas?
I don’t know what text box you are referring to. But it sounds like WP is not processing short codes that are in it. Is there some setting in WP or your theme to change that?
Thread Starter
Graaf
(@graaf)
It is the widget text box.
It must have been the theme that changed some settings, i dont have any idea whats changed π
Google “shortcodes in widgets” will give you some info.
Supposedly Shortcodes in Sidebar Widgets plugin will do it.
If not, basically it looks like you would need to add this filter:
add_filter( 'widget_text', 'do_shortcode');
…which you can add to our functions.php file or use my Add Actions And Filters plugin to add it.
Thread Starter
Graaf
(@graaf)
Thank You Michael.
That solved the problem with the short codes (both options you suggested), but gave me another issue.
When i use this short code
[cfdb-html form="Kontaktformular 1" limit=3"]
${dato}<br>
${your-name}<br>
${your-subject}<br>
<hr>[/cfdb-html]
It will show all the entries in database regardless of limit.
Is there a way to solve this?
You are missing a quote. Try:
[cfdb-html form="Kontaktformular 1" limit="3"]
${dato}<br>
${your-name}<br>
${your-subject}<br>
<hr>[/cfdb-html]
Thread Starter
Graaf
(@graaf)
And it worked! Thank You.
The short code is made via Contact Form DB short code, so maybe there is a bug in there?
Made a new short code to test the missing quote:
[cfdb-html form="Kontaktformular 1" limit=3"]${Submitted}[/cfdb-html]
The qoute is missing..
Hi Graaf,
I think its only a little bug inside of CFDBViewShortCodeBuilder.php on line 412. It states:
scElements.push("limit=" + limitOption + '"');
Uncomment this line and add another:
// scElements.push("limit=" + limitOption + '"');
scElements.push('limit="' + limitOption + '"');
And everthing is fine. π
I think that Michael could add this “bug-fix” in a future release.
Regards
– Markus
Thank you, I will fix that code right away.