The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

EZ SHORTCURL Shortcodes to Fetch and Parse External Content
[resolved] Wrap shortcode in a div (3 posts)

  1. dmm4biz
    Posted 2 years ago #

    I am just trying to show menu content from a restaurant site that is physically in our bar. I have everything looking OK, but i would like to wrap your shortcode in a div so I can add other divs and content to the page.

    A good working one can see here, just using the shortcode:

    [remote_get url="http://johnnyjensens.com/menu3" start='
    <div class="entry-content clearfix"]

    as seen here live:

    Problem with adding a <div> can be seen here:


    <div id="jj-menu">[remote_get url="http://johnnyjensens.com/menu3" start='<div class="entry-content clearfix"' stop='<div id="comments"']</div>


  2. Eli
    Plugin Author

    Posted 2 years ago #

    WordPress is re-formatting your content data inside the shortcode and thus breaking the shortcode parameters. Where it sees "<div" it replaced with "\n<div" (CR + "<div"). So you need to fool the WP filter by using "&lt;div" in your start and stop parameters.

    Let me know if you can't get that to work.

    Aloha, Eli

  3. dmm4biz
    Posted 2 years ago #

    That did the trick!! Thanks for the quick response!

    Mahalo, Matty

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic