WordPress.org

Forums

Network Latest Posts
[resolved] Latest posts duplicate (5 posts)

  1. elin
    Member
    Posted 2 years ago #

    I´m using network latest post on my frontpage, and have paginated the plugin so that it shows two posts from each blog on the frontpage, and with possibility to show 4 more posts.

    The problem is when I click the "next page" for the two posts it
    1) moves to the next posts for both blogs (not really a big problem)
    2) duplicates so that each blog shows two times.

    My blog: http://tasteofslow.com/

    My code:
    [nlposts title="My latest travel posts" title_only=false thumbnail=true auto_excerpt=true display_type=block full:meta=true number_posts=2 thumbnail_wh=300x200 thumbnail_class=alignleft paginate=true posts_per_page=2 number_posts=6 blog_id=4]

    [nlposts title="My latest food posts" title_only=false thumbnail=true auto_excerpt=true display_type=block full:meta=true number_posts=2 thumbnail_wh=300x200 thumbnail_class=alignleft paginate=true posts_per_page=2 number_posts=6 blog_id=3]

    Can anyone tell me why it duplicates?

    Is there any way to get the photos in colour (it turns to colour by mouse over photo as it is now).

    Thanks for this great plugin!!!
    Elin

    http://wordpress.org/extend/plugins/network-latest-posts/

  2. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 2 years ago #

    Hello Elin,

    Sorry I've moved to another country so I'm trying to set things up around here. When you use multiple instances you must set a different instance name for each shortcode, otherwise it will happen just that, both elements will change pages because the jQuery script won't be capable of distinguish one of the other.

    Add the instance name to each shortcode like this:

    [nlposts title="My latest travel posts"
            title_only=false
            thumbnail=true
            auto_excerpt=true
            display_type=block
            full_meta=true
            number_posts=2
            thumbnail_wh=300x200
            thumbnail_class=alignleft
            paginate=true
            posts_per_page=2
            number_posts=6
            blog_id=4
            instance=travel
    ]
    
    [nlposts title="My latest food posts"
            title_only=false
            thumbnail=true
            auto_excerpt=true
            display_type=block
            full_meta=true
            number_posts=2
            thumbnail_wh=300x200
            thumbnail_class=alignleft
            paginate=true
            posts_per_page=2
            number_posts=6
            blog_id=3
            instance=food
    ]

    If you want your thumbnails to display without any effects, just copy the CSS available here: Default Opacity and save it to your active WordPress theme folder (where style.css is found) then add to each shortcode the css_style parameter, something like this:

    If you saved the css using this name: color_thumbs.css for example, then your shortcodes must be set like this:

    [nlposts title="My latest travel posts"
            title_only=false
            thumbnail=true
            auto_excerpt=true
            display_type=block
            full_meta=true
            number_posts=2
            thumbnail_wh=300x200
            thumbnail_class=alignleft
            paginate=true
            posts_per_page=2
            number_posts=6
            blog_id=4
            instance=travel
            css_style=color_thumbs
    ]
    
    [nlposts title="My latest food posts"
            title_only=false
            thumbnail=true
            auto_excerpt=true
            display_type=block
            full_meta=true
            number_posts=2
            thumbnail_wh=300x200
            thumbnail_class=alignleft
            paginate=true
            posts_per_page=2
            number_posts=6
            blog_id=3
            instance=food
            css_style=color_thumbs
    ]

    Try these shortcodes and let me know, I'm guessing those duplicated posts are being displayed because of the missing parameters and some typos in your current shortcodes.

    Let me know if it helps.

    Regards,
    José Luis.

  3. elin
    Member
    Posted 2 years ago #

    Thanks alot, and sorry for taking me so long to get back to you!

    The Instance=food/travel worked, and they do not double up. Thy still both move to the next page when you press another page on one of them - but that`s not a problem.

    I managed to get the colored thumbs by following your suggestions - thanks :) However, on the new layout I get one text line with Food/Travel, publish date and author, like here:

    http://tasteofslow.com/test-frontpage-20121220/

    I`m not good enough reading coded to figure out what to edit in the CSS code that you gave me (linked to in the post above) to remove this part - or at least make it line up with the text underneath. If someone could tell me I would be very happy :)

    Thanks,
    Elin

  4. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 2 years ago #

    Hello Elin,

    If I understand well, what you want to remove is the "Travel - Published on November 24, 2012 by elin" part right? to do so just delete the full_meta=true parameter from both shortcodes and that's it. When you set full meta true, meta information is displayed, that way you don't need to change anything from the CSS file.

    Best regards.

  5. elin
    Member
    Posted 2 years ago #

    Thanks - I thought I had to change the CSS style since this showed up on my test page after adding the code for getting clolored thumbnails.

    Thanks for you support - and have a wonderful Christmas holiday Jose Luis :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Network Latest Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic