Changing the settings for recent posts.

  • Unknown's avatar

    On the site that I’m working on, there are 5 pages/categories listed along the top bar. Three of those pages include featured articles and 1 page includes small articles that are interesting but not the focus. Can I change the “recent posts” settings to only pull the posts from specific categories/pages?

    The blog I need help with is: (visible only to logged in users)

  • Hi there,

    I took a look at your site, and before I help you out here, I wanted to be sure I understood you.

    I’m working on, there are 5 pages/categories listed along the top bar. Three of those pages include featured articles and 1 page includes small articles that are interesting but not the focus.

    Unfortunately it is not possible to modify the “Recent Posts” widget to display only certain selected posts; it displays all posts regardless of tag or category.

    However, as an alternative, you can use the “Display Posts” shortcode to create your own custom feed that displays posts from a given category or tag, for example. There are a lot of options on using this shortcode here: http://en.support.wordpress.com/display-posts-shortcode/

    To make the above shortcode work as a widget, all you need to do is place it into a blank text widget (which will correctly output the shortcode) and you’re all done.

    For example,if you add the following shortcode into a text widget, it will produce a list or the 10 most recent posts from your two most-used categories. Feel free to add categories (separated by commas) or modify the number of posts you want to show in the widget.

    [display-posts category="Discovering The Christ Life, Hope in Parenting" posts_per_page="5"]

    When added to a text widget it will look like this:

  • Unknown's avatar

    Thanks Jerry for the help. I was able to create the text widget, but I’m not able to move it to where the “recent posts” section is on the template. At this point, I’m going to continue to use my other wordpress.org account.

  • Hi Paul,

    Sorry you have been having trouble getting your widget to work. I’m happy to help with that. Are you trying to replace this widget here?

    https://cloudup.com/cQOCTRklDGG+

    Let me know, and I will be happy to help.

  • The topic ‘Changing the settings for recent posts.’ is closed to new replies.