setting shortcode category_posts category_slugs

Support Forums for LiveMesh Themes & Plugins Forums Extinct Theme Support setting shortcode category_posts category_slugs

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3149
    Nicoma81nicoma81
    Member

    Hello

    I used the shortcode [category_posts category_slugs = “argument-the-week”] on the homepage, but I wish they would have displayed only the last entry added to this category and not all of those published.
    Could you explain how to set this up?

    This is the link: http://www.carlobiagioli.com

    Thanks Nico

    #3188
    RaghavendraRaghavendra
    Moderator

    I guess you can use the post_count parameter for this(post_count=1 in your case since you need just the last entry). You can have a look at the example here –

    https://www.livemeshthemes.com/extinct/blog-shortcodes/

    [category_posts category_slugs="Nature,Lifestyle" post_count=4 hide_thumbnail="false" show_meta="true" excerpt_count=120 image_size="medium"]
    
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Extinct Theme Support’ is closed to new topics and replies.