How do I set up a customized list of my own archived posts?
-
Instead of showing a basic archive of my posts by date on the sidebar, I’d like to display a list of past posts, by title, that I want new followers to see (that is, I think they are my best posts or I think they contain background information that I want my new followers to read.) How do I do this?
The blog I need help with is: (visible only to logged in users)
-
-
Instead of showing a basic archive of my posts by date on the sidebar, I’d like to display a list of past posts, by title, that I want new followers to see.
Method A, custom menu widget:
Create a custom menu in which the items are links to your selected posts. Display the list with a custom menu widget, if you want it in the sidebar.Method B, with display posts shortcode:
1. Assign your select posts to a “must read” (something similar in your words should work as well, I presume) category.
2. Create a shortcode to display up to 100 posts, and customize as described in the support page Display Posts Shortcode. You can limit the list to your “must read” category of posts by including that category in the code. Example:[display-posts category="must-read" posts_per_page="-1" include_date="true" order="ASC" orderby="title" posts_per_page="100"]
3. Paste the shortcode into a text widget, or insert into a post or page.
-
I inadvertently included two “posts per page” values in the above code. “-1” evidently displays the maximum number of posts (of the given category in this case), while 100 is the limit of posts that the code may display. Therefore the values “-1” and “100” are equivalent, and one can be omitted. I’ve also included date and order arguments which you might not want. The simplest code to display all posts in the “must read” category (limit 100) would be
[display-posts category="must-read" posts_per_page="-1"]
To display them in alphanumeric order by post title, you might try
[display-posts category="must-read" posts_per_page="-1" include_date="true" order="ASC" orderby="title"]
-
- The topic ‘How do I set up a customized list of my own archived posts?’ is closed to new replies.