Support » Plugin: Single Latest Posts Lite » Multiple shortcode on one page

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jose Luis SAYAGO

    (@iluminatus)

    Hi Mayuresh,

    When you plan to use multiple shortcodes on the same page you must set the instance parameter, for example:

    [slposts instance=section1 paginate=true posts_per_page=10 number_posts=1000]
    [slposts instance=section2 paginate=true posts_per_page=10 number_posts=1000]
    [slposts instance=section3 paginate=true posts_per_page=10 number_posts=1000]
    [slposts instance=section4 paginate=true posts_per_page=10 number_posts=1000]

    That way you specify jQuery pagination functions to treat each one independently. So when you change pages in one the rest stay where they are.

    Hope this helps.

    Best regards,
    José Luis

    Hi Thanks Jose

    But when I used three time it’s not working,I am sending you my shortcode plz check below short code
    First Short Code Working
    [slposts instance=movie-reviews number_posts=3 time_frame=100 post_status=publish category=”Movie Reviews” excerpt_trail=image thumbnail=true display_type=block thumbnail_wh=90×150]
    Second Short Code Working
    [slposts instance=featurenews number_posts=3 post_status=publish category=”Feature Stories” excerpt_trail=image thumbnail=true display_type=block thumbnail_wh=100×100]
    When I add Third Short code so it’s not working means full page hide.
    why any reason? can you help me about this issue ?
    [slposts instance=”Bollywood Party Circuit” number_posts=2 time_frame=10 post_status=publish category=”Bollywood Party Circuit” excerpt_trail=image thumbnail=true display_type=block thumbnail_wh=90×100]

    Plugin Author Jose Luis SAYAGO

    (@iluminatus)

    Hello Mayuresh,

    One thing I noticed is your shortcodes aren’t using category slugs, that’s maybe the reason why they are not working as expected, your category slugs should be like this:

    • Category: Movie Reviews | Slug: movie-reviews
    • Category: Feature Stories | Slug: feature-stories
    • Category: Bollywood Party Circuit | Slug: bollywood-party-circuit

    This is because WordPress replaces all spaces by dashes (-) and turn all uppercase characters to lowercase, try changing your shortcodes by these ones:

    [slposts instance=MovieReviews number_posts=3 time_frame=100 post_status=publish category=movie-reviews excerpt_trail=image thumbnail=true display_type=block thumbnail_wh=90x150]
    
    [slposts instance=FeatureNews number_posts=3 post_status=publish category=feature-stories excerpt_trail=image thumbnail=true display_type=block thumbnail_wh=100x100]
    
    [slposts instance=BollywoodPartyCircuit number_posts=2 time_frame=10 post_status=publish category=bollywood-party-circuit excerpt_trail=image thumbnail=true display_type=block thumbnail_wh=90x100]

    Let me know if it works.

    Kind regards,
    José Luis.

    Thanks Jose

    I got the error. I remove time_frame=10 form third short code.
    My problem is solved.
    Thanks
    Mayuresh Bagwe

    Plugin Author Jose Luis SAYAGO

    (@iluminatus)

    Hello, I forgot to mention, indeed 10 is a really short period of time, I’m glad you got it working.

    Thanks for your feedback.
    José Luis.

    Thanks
    I have one small query about image size,If I have already mention image size in short code, but image size not display properly why it is ?
    can u give me your gmail id ?

    Thanks
    Mayuresh Bagwe

    Plugin Author Jose Luis SAYAGO

    (@iluminatus)

    I imagined you would ask something like this, that’s due to WordPress default media settings, please refer to this thread where you will find the solution: http://wordpress.org/support/topic/plugin-network-latest-posts-thumbnail-sizing?replies=6.

    In short, you must change WordPress default image sizes, then regenerate all of them, otherwise your thumbnails will ignore sizes specified through shortcodes.

    WordPress default thumbnail size is 150×150 if you try to set an image bigger than 150 it won’t do anything.

    My contact email address: opensource@laelite.info

    Best regards,
    José Luis.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Multiple shortcode on one page’ is closed to new replies.