How to set a widget for custom posts on Twenty Fourteen?
-
Hey guys!
I have a movie review website, and I would love to be able to have a list of movies sorted by theater release date (most recent movies) as well as have a list of my most recent reviews sorted by my post date.
How would I accomplish this?
Thank you!
The blog I need help with is: (visible only to logged in users)
-
Hi,
In your post editor, add your posts to categories.
http://en.support.wordpress.com/posts/categories/#adding-categories-via-the-categories-moduleFor example, your categories could be “movies” or “reviews” (without the quotes).
Go to Appearance > Widgets, use a Text Widget,
http://en.support.wordpress.com/widgets/text-widget/
then add the following code:[display-posts category="movies" order="DESC"]
for the movies (where movies is the name of your category “movies”).
The order is descending.and
‘[display-posts category="reviews" order="DESC"]‘
for the reviews (where reviews is the name of your category “reviews”)I think the only way to order it is by date posted so just make sure you post in the order that you want it shown.
See more options for the display post shortcode here:
http://en.support.wordpress.com/display-posts-shortcode/Hope that helps!
- The topic ‘How to set a widget for custom posts on Twenty Fourteen?’ is closed to new replies.