shorcode [display-posts] ?
[display-posts] lets you list posts of a specific category, author, or tag
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.
“shortcode” ^^ sorry :-s
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" ]
[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 !)
Thank you! I never noticed that before but it could be quite useful!
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
hey hey hey Tessie, mmmwah!!! a huge kiss for you my old pussycat friend ❤
…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.
Thank you Tassi, you’re simply perfect, dear :p
You can try this as well.
I found this topic while looking up the tag.
The topic ‘shorcode [display-posts] ?’ is closed to new replies.