Archives Shortcode for categories?
-
Hello,
I’d like to create a page of links to posts for a certain category. The archives short code does exactly what I want but I couldn’t see a customisation on this page for restricting down to a certain category?
http://en.support.wordpress.com/archives-shortcode/For example I want to create a glossary of definitions for my coursework as I go through the course. Currently I have them all on one page (not in separate posts but its already starting to get annoying to reference a term I want, when this page has a hundred or so definitions its going to be a nightmare.
http://digitalfilmproductionbysuzy.wordpress.com/jargon-glossary/
I know I can have a category page but my theme shows the full posts so I’d be in the same position I am now with all the definitions laid out in full down the page. I don’t want to change themes as I’ve chosen this one carefully.
Many thanks
SuzyThe blog I need help with is: (visible only to logged in users)
-
Support doc on the shortcode:
http://en.support.wordpress.com/display-posts-shortcode/For an alphabetical list of links to all the posts that are filed under a specific category, you paste this version in a page (plain list):
[display-posts category="NAME" posts_per_page="-1" order="ASC" orderby="title" wrapper="div"]or this version (bulleted list):
[display-posts category="NAME" posts_per_page="-1" order="ASC" orderby="title"]Replace NAME with the actual name of a category.
https://en.forums.wordpress.com/topic/display-posts-shortcode?replies=4#post-1283541
-
thanks thats wonderful. It looks like this only does posts posted in that exact category and not any of the children categories but that shouldn’t be a problem for what I want. Many thanks! :)
-
Anyone know what I’ve done wrong here. The code is as follows:
[display-posts category="definitions" posts_per_page="-1" order="ASC" orderby="title"]
but I get either 1 or 6 of the 10 items in the category showing up as links – seemly at random?
here is the page:
http://digitalfilmproductionbysuzy.wordpress.com/jargon-glossary-2/thanks
Suzy
- The topic ‘Archives Shortcode for categories?’ is closed to new replies.