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.
Thread Starter
elin
(@elin)
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
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.
Thread Starter
elin
(@elin)
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 🙂