• Hello.
    Very good plugin. Tested and working well.
    However I have one question, is it possible to work with shortcode pages?
    Like contact form 7 or similar. Right now you can’t show that page. Only with regular content.
    Is there any way, even to change some code in php to be able to see those pages using plugin?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor christer_f

    (@christer_f)

    You have to make a minor change in the plugin code to do that. In boot_modal.php somewhere around line 135 (I can’t say EXACTLY the line number since I have made other changes to also handle translation), you change the following line:
    <?php echo $this->post->post_content ; ?>
    To:
    <?php echo apply_filters('the_content', $this->post->post_content) ; ?>

    Now you can use contact form 7 shortcodes to make a modal contact page.

    Thread Starter zemunelo

    (@zemunelo)

    Thank you very much.
    I tested it and it is working perfectly. I can show almost all pages now, even those with shortcodes including contact form or visual composer content.
    I suppose you can include this in update, can you?

    Final question, can you show widgets?
    Only pages that contain widgets can’t be showed. I suppose the code should be tweaked more for widgets pages to be showed…

    Anyway thanks a lot for this fix.

    Plugin Contributor christer_f

    (@christer_f)

    Well, I’m not the author of the plugin, just a user 🙂 I like the plugin, but I have made several tweaks to the code – I have tried to get hold of the author to see if he could include it in a future version, but with no success. In addition to the shortcode change above, I have made it compatible with the qtranslate-X plugin for multi-language pages and also added parameters to the shortcode that get passed in the URL to the page that shows up in the modal.

    Thread Starter zemunelo

    (@zemunelo)

    Yes I see, there is no “author” under your name 🙂 and I missed that.
    Anyway, thanks for your help. It is working very well.

    I am using WPML so I don’t have any problem with multilingual pages because WPML makes copies of original pages but with different url’s. If the slug of the post is different in other language (it usually is) there is no problem to show the post.

    Only the pages/posts with widgets can’t be shown.

    • This reply was modified 7 years, 4 months ago by zemunelo.
    Plugin Author albedo0

    (@albedo0)

    Hello @christer_f

    I had the change that you made…
    If you have other tweaks i’m open !
    I don’t know how to write to you directly but you can contact me !

    Bye

    Plugin Contributor christer_f

    (@christer_f)

    Hello @albedo0,
    Don’t know h2 contact you, but you can mail me at christer@tekomatik.com
    Cheers

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Show page content containing shortcode’ is closed to new replies.