Support » Plugins and Hacks » recent posts by category in pages, not in loop subpages list in sidebar

  • 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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

    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).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘recent posts by category in pages, not in loop subpages list in sidebar’ is closed to new replies.