shorcode [display-posts] ?

  • Author
    Posts
  • #1116041

    lilmaouz
    Member

    [display-posts] lets you list posts of a specific category, author, or tag

    cf support: http://en.support.wordpress.com/shortcodes/#miscellaneous

    Hi everybody,
    Since there’s no more info available on the above support page, does anybody know how to customise this shortcode in order to display such a list of posts from a specific category onto a static page, please?

    e.g I’ve tried this one, but it only displays a kind of archive list for my 10 latest posts with no category selection
    [display-posts taxonomy=category tag_ID=914 post_type=post]

    Any suggestion would be great, thanks in advance :-)

    The blog I need help with is lilmaouz.wordpress.com.

    #1116137

    lilmaouz
    Member

    “shortcode” ^^ sorry :-s

    #1116157

    tassiopee
    Member

    Hello LittleMinnie,
    thank you for the information… i didn’t know it… so I searched and here is what I found which works for me :
    [display-posts tag="SLUG_ID" posts_per_page="NUMBER" ]
    or
    [display-posts category="SLUG_ID" posts_per_page="NUMBER" ]

    where SLUG_ID is the word in the Slug column facing the name of the desired category or tag in the lists of tag or category,
    and of course NUMBER is the name of article you want to see in the page. You will see the last posts of that category (or tagged with the specified tag)
    A Bientôt and Happy new Year ! (in english for today !)

    #1116160

    1tess
    Moderator Emeritus

    Thank you! I never noticed that before but it could be quite useful!

    #1116164

    lilmaouz
    Member

    hello meuheuh, tank you paris match ^^ (heureusement que les potines sont là, j’aurais largement le temps de sècher avant qu’on s’intéresse à moi ici :-) lol

    #1116166

    lilmaouz
    Member

    hey hey hey Tessie, mmmwah!!! a huge kiss for you my old pussycat friend ❤

    #1116176

    tassiopee
    Member

    …and of course to display posts from a specific author :

    [display-posts author="USERNAME" posts_per_page="NUMBER" ]

    where USERNAME is (what a surprise!) the WP username of the specific author and NUMBER is the number of articles you want to see in the page. You will see the last posts written by this specific author.

    Sorry for my first answer : NUMBER is the name of article you want to see in the page
    Of course I wanted to write : NUMBER is the number of articles you want to see in the page.

    @ lilmaouz : c’est à cela que servent les potines ! ne pas vous laisser aller seule vers l’étranger.

    #1116177

    lilmaouz
    Member

    Thank you Tassi, you’re simply perfect, dear :p

    #1116367

    You can try this as well.
    https://en.forums.wordpress.com/topic/shortcode-display-posts-options?replies=4

    I found this topic while looking up the tag.

    #1116368

    timethief
    Member

    @lilmaouz
    @tassiopee
    Waving to you two. :)

    #1116369

    timethief
    Member

    @designdolphin
    Cool. :)

The topic ‘shorcode [display-posts] ?’ is closed to new replies.