• Resolved hellu24

    (@hellu24)


    Hi!
    Since the last update, the shortcodes that I use with shortcoder (https://ww.wp.xz.cn/plugins/shortcoder/) in some fields no longer work. For testing I included a short code from “shortcoder” in a normal post. It is working. I also disabled all other plugins. This is not where the error comes from. So I believe that the Business Directory plugin doesn’t allow any other short codes at the moment. Please help. Thank you!

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support bobbied

    (@bobbied)

    Hi @hellu24

    Thank you for reaching out about this. I’m sorry to hear that you ran into issues with this!

    Can you please check the form field setting for the Description field to be sure that it allows HTML code? That’s under Directory > Directory Content > Form Fields in the actual field settings.

    Please try that and let me know if you run into more issues.

    Thread Starter hellu24

    (@hellu24)

    Hi @bobbied

    Yes – html is allowed for this field.
    I also tested the short code in the main description and in title. It does not work.
    Do you have another idea or hint? Many thanks!

    Plugin Support bobbied

    (@bobbied)

    Hi @hellu24

    Thanks for getting back to me on this. Can you also check in the description field under Directory > Directory Content > Form Fields that the Allow WordPress shortcodes in this field? is checked as well?

    Please let me know.

    ~Bobbie

    Thread Starter hellu24

    (@hellu24)

    Hi Bobbie,
    thank you for this information. My field is a “Post Metadata” field. Here is no shortcode option. I seems, that since the last update it is only possible to allow shortcodes to the content field. But I use the content field for some other content and it is only possible to have one content field. How can again I allow shortcodes to a “Post Metadata” field?

    Plugin Support bobbied

    (@bobbied)

    Hey @hellu24

    Thank you for your patience on this.

    I’ve discussed this with our developer and right now, this will need to be a feature request. This isn’t a secure option since any shortcode added in any field would be processed. Having said that, you can use this code snippet to support shortcodes in meta fields right now:

    add_filter( ‘wpbdp_form_field_html_value’, ‘bd_field_shortcodes’ );
    function bd_field_shortcodes( $value ) {
    return do_shortcode( $value );
    }

    Note: this is a code snippet, so it doesn’t go in a template file. Here’s more info on how to use it:
    https://businessdirectoryplugin.com/article-categories/hooks/

    I hope that helps! If there’s something else I can help you with, please let me know.

    • This reply was modified 3 years, 9 months ago by bobbied.
    Thread Starter hellu24

    (@hellu24)

    Thanks very much 🙂 This is a great solution to my problem! Works perfectly!

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

The topic ‘Shortcoder shortcodes not working’ is closed to new replies.