WordPress.org

Ready to get started?Download WordPress

Forums

Single Latest Posts Lite
[resolved] Multiple shortcode on one page (8 posts)

  1. Mayuresh Bagwe
    Member
    Posted 1 year ago #

    Hello
    I create multiple short-code for one page, means I added 4 short code on one page but it's not working any solution for this ? My page all content hide please give me any solution.

    Thanks And Regards
    Mayuresh C Bagwe

    http://wordpress.org/extend/plugins/single-latest-posts-lite/

  2. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 1 year ago #

    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

  3. Mayuresh Bagwe
    Member
    Posted 1 year ago #

    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=90x150]
    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=100x100]
    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=90x100]

  4. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  5. Mayuresh Bagwe
    Member
    Posted 1 year ago #

    Thanks Jose

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

  6. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  7. Mayuresh Bagwe
    Member
    Posted 1 year ago #

    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

  8. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 1 year ago #

    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 150x150 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.