WordPress.org

Ready to get started?Download WordPress

Forums

recent posts by category in pages, not in loop + subpages list in sidebar (3 posts)

  1. potterhead4
    Member
    Posted 6 years ago #

    I'm trying to do two things that to me seems like there should be a simple plugin or hack - but with hours of searching I can't find anything.

    1. I need to display a list of recent articles by category on several pages. The reason for this is that I'm doing a quasi-financial site, and I have a page for about 30 ticker symbols. I want to display a "related articles" thing that shows all the posts published and categorized in that symbol's subcategory.

    I've seen a lot of plugins, but they only seem to want to work inside the loop. Does anyone know how to get this functionality on a page?

    2. I need to display the subpages (these are the ticker symbol pages) parented to a main page called "stocks" in my sidebar. However, I don't want it to link to the main stocks page (it needs to have a formatted header that says stocks) or show the black Pages text that seems to be the default for wp_list_pages. Any ideas?

    Thanks so much.

  2. Leovenous
    Member
    Posted 6 years ago #

    Looks like you need to get handy with the various uses for the query_posts() tag. It's great for multi-faceted page templates (don't hurt me Mosh).

    http://codex.wordpress.org/Template_Tags/query_posts

  3. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    I've seen a lot of plugins, but they only seem to want to work inside the loop. Does anyone know how to get this functionality on a page?

    Page Templates need to have Loops too.

    All pages on any WordPress site have Loops, if they are displaying any content from the posts table (and pages are just another form of posts).

Topic Closed

This topic has been closed to new replies.

About this Topic