Viewing 10 replies - 1 through 10 (of 10 total)
  • 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?

    Plugin Author Michael Simpson

    (@msimpson)

    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 πŸ™

    Plugin Author Michael Simpson

    (@msimpson)

    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?

    Plugin Author Michael Simpson

    (@msimpson)

    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

    Plugin Author Michael Simpson

    (@msimpson)

    Thank you, I will fix that code right away.

    Thread Starter Graaf

    (@graaf)

    Thx all

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Short code not showing data, only short codes’ is closed to new replies.