Topic: short code | WP Masonry Layout

short code

Home Forums Lite Version short code

This topic contains 2 replies, has 2 voices, and was last updated by  Masonry Guy 1 year, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4761 Reply

    Andrew

    Hi! Explain me, please, where i need insert shortcode? My home page is dynamic and i need to load all posts on it in masonary way using your plugin. But when i put shortcode in the index.php nothing happens, if i insert it in the post editing window it works, but not correct (if you click first link on the trekhacker.ru site you`ll see). Please, help me.

    #4766 Reply

    Andrew

    The problem has been solved. There was mistake in code. Plugin wrote that shortcode is:
    [wmls name="masonry" id="1"], but if you want to paste it in the your index.php you must use that code with out “” after id=. So in my case all works when i wrote:
    <?php echo do_shortcode(“[wmls name="masonry" id='1']“); ?>

    #4800 Reply

    Masonry Guy
    Keymaster

    Hi Andrew,

    Glad you fixed the problem and thank you so much for posting the solution for others.

    Thanks

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: short code
Your information: