PHP shortcode for DIVI dosnt work for blog posts

Home Forums Product Support Forums Ajax Search Pro for WordPress Support PHP shortcode for DIVI dosnt work for blog posts

This topic contains 2 replies, has 2 voices, and was last updated by supertaz supertaz 5 years ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #20194
    supertaz
    supertaz
    Participant

    Hi,
    I cant get the php shortcode to work at DIVI blot posts type template.

    https://www.casinostartbonus.com/wp-admin/admin.php?page=et_divi_options =>> Integration =>> I have added the code at the top of blog posts field.

    There I’ve added the php code:
    <?php echo do_shortcode(‘[wpdreams_ajaxsearchpro id=1]‘); ?>

    But nothing happen when I open blog posts. I can see the php code when I view source of a blog post, and I have tried to use the shortcode [wd_asp id=1] and that didn’t work either.

    Exsample of blog post: https://www.casinostartbonus.com/spilleautomater/wild-toro/

    Shortcode added at my frontpage: https://www.casinostartbonus.com/ and at that page the search box works 🙂

    How can I get the search box to work at blog posts type template?

    Best regards Steffan Taszarek

    Support purchase codes
    f7a06c01-0a81-47db-ab60-23494a9520a6

    • This topic was modified 5 years ago by supertaz supertaz.
    • This topic was modified 5 years ago by supertaz supertaz.
    #20203
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    I think those modules does not support shortcodes or php code either, or it does not look like it. I think you might need to ask the Divi developers, if there is any other way to append shortcodes/PHP there. Maybe there is a different way of using a module of some sort?

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #20210
    supertaz
    supertaz
    Participant

    Hi,

    okay 🙂 Thx for your reply. I will contact Elegant Themes (DIVI) about the problem.

    I will try to see if the modules can be used different then…

    Best regards
    Steffan Taszarek

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.