WordPress.org

Ready to get started?Download WordPress

Forums

Elastic Slide
[resolved] Shortcode Issue (4 posts)

  1. jeanneleez
    Member
    Posted 10 months ago #

    I am not sure what you mean when you say to post the ids of the blog posts. I tried the full URL, tried just the "?p=3208" and just "3208". What exactly is supposed to be added? Are you supposed to put a space after the comma or not?

    Example: [elastic_slide posts="3804, 3790, 3772, 3768, 3762, 3739, 2947, 2197, 49"]

    Please help me understand what I am doing wrong.

    Thanks,
    Jeanne

    http://wordpress.org/plugins/elastic-slide/

  2. Nikos M.
    Member
    Plugin Author

    Posted 10 months ago #

    Hi Jeanne,

    the shortcode parameter is like this:

    [elastic_slide posts="..ids of posts here with commas.."]

    so your example is correct:

    [elastic_slide posts="3804,3790,3772,3768,3762,3739,2947,2197,49"]

    (better remove the spaces, might interefer, havent tested)

    Hope this helps

  3. mrhaha80
    Member
    Posted 8 months ago #

    Hi,

    If i would like to use PHP instead of shortcode. possible?

    Thanks

  4. Nikos M.
    Member
    Plugin Author

    Posted 8 months ago #

    Yes this is possible,

    just use

    echo do_shortcode('[elastic_slide posts="3804,3790,3772,3768,3762,3739,2947,2197,49"]');

    inside your php

    do_shortcode function takes a string with the shortcode and produces the output, so it is the same, but in php

    Note: this project has stopped, is not maintained

Reply

You must log in to post.

About this Plugin

About this Topic