Maybe take a look inside the 2010 theme that comes packaged with WP, index.php shows a call to a loop file: <?php get_template_part( 'loop', 'index' ); ?>
so you could (well this is how i would do it, cos i think it looks neater, but you could use multiple loops) create 2 new loop files for example they could be called loop-economy.php
and loop-enviroment.php
both of these loops set to call only posts from there respective categories and then use:
<?php get_template_part( 'loop', 'economy' ); ?>
where you want the economy posts to show in your template and then use:
<?php get_template_part( 'loop', 'environment' ); ?>
where you want the environment posts to show in your template
Related Posts:
- How do I query by post format in WordPress 3.1
- query_posts sort in multiple directions
- Adding Variables to post query
- Static Front-Page Excerpts
- When to use WordPress loop or Foreach loop?
- How do I query based on the modified date?
- Query add html after set amount of posts?
- WordPress loop problem: Multiple loops, index.php and is_paged causing duplicate posts on next page
- Why query_posts() isn’t marked as deprecated?
- how to query posts by category and tag?
- How to set posts per page using WP_Query()
- How do I create a random post that will last for a day
- Custom Post Type “Event”: chronological list of recurring events
- Order by meta value, pro first, then free
- Having trouble generating pagination links on custom query
- How to create an attachments archive with working pagination?
- query_posts and pagination, still stuck after much research
- Query posts by taxonomy term name
- Sorting problem with ‘query_posts’ funcion in wordpress. Sort by custom field not working
- how could I get the pagination as I want to when query posts using get_posts function
- Counter code for paginated category pages in wordpress
- Author List page: Exclude based on last post date
- Replace query_posts with pre_get_posts
- Filter query_posts by tag slug on “Tag Archive” page (when tag is 2 or more words)
- pagination in author.php template returns 404 error
- Warning: urlencode() expects parameter 1 to be string, array given in and not getting the preffered output
- query recent posts from several categories
- Show Posts From Same Category OR Same Tag
- Get all posts WHERE custom_field is LIKE value
- Using database meta_values to calculate new post order using pre_get_posts or a ‘request’ hook
- exclude ids through post__not_in
- Different number of posts on the front page
- Query posts without a specific ID
- Integrating post archive wtih another source and preserving date ordering
- Filter Posts By Tag
- Custom posts per page does not work with pagination
- Order posts using a custom array
- WordPress query_posts and orderby page order
- IF.. post meta show… Conditional Tag Help…?
- Filter my home page posts by category or by tag
- How do I correctly get all posts within the last year using the query_posts function?
- How to filter query to display posts from parent category only?
- Display random post on a page with post permalink in URL
- Query_post($args)
- WordPress pagination with get_posts?
- will post_id ever change? Can I safely use post_id for custom queries?
- Get post and all posts after it by ID?
- query_posts() on key’s value, or key’s existence
- Custom Post Type Query for Sidebar Doesn’t Work on Front Page
- How to display certain category in the loop from WordPress default post type?
- How do I make query use exact post title
- WordPress tax_query not showing private posts
- WordPress /page/2 not working
- My post repeats itself on the second page [closed]
- get_the_title outputs title until spacing; it does not get full length of title
- Filter Loop by Custom Field Value
- Display custom post type by custom taxonomy
- WordPress wp_get_attachment_thumb_url full
- Why in this archive page that call query_posts() function show only the last 10 posts?
- Display trimmed version of the_post()
- Exclude posts by post meta value
- How to show the number of each post has been read in a while loop?
- Modify loop but keep the original query, what am I doing wrong?
- Post per page not working if no category specified
- How to change default post type / post to media or attachments
- How exclude 3 latest posts of a category in query_posts
- Query Products & Store IDs in array
- query_posts orderby multiple ways
- Can I use WP_Query one time and then filter the results multiple times
- Pagination linking to first page
- Posts being viewed
- Meta query stopped working
- Weird problem on if statement
- Issue with sidebar widgets not showing when I do custom queries
- Why would post_type be ignored in this query?
- query_posts call sets is_home() to true
- show all in query_posts on category.php?
- Query Posts Incorrectly Displaying Tags Archives
- Best Query for blog posts
- Most Effective Method? Exclude Category and Number of Posts Per Page
- Script that gets the first tag of post and query all other posts with the same tag
- Trouble highlighting correct menu parent with wp_nav_menu classes while viewing “single posts”
- Custom query looking at multiple custom fields and properly sorting
- Latest 5 post excerpts from 5 different authors in Sidebar
- post var problem with shortcode loop
- Pre-existing arguments when using queries
- Help with query_posts function
- custom post type and user post count shortcode
- Get posts for each user
- Pull new posts using feed
- query_posts() with multiple meta data comparisons
- How do I control the fallback query after the original query returned cero posts?
- get_next_posts_link() stops displaying at page 4
- Multiple post queries -category,posts per page,orderby
- How to apply order on custom taxonomy and custom meta key on custom post type
- How to can I search range of products using between
- Query Posts (post meta)
- Including post data in a sidebar occurring outside of and before the Loop
- get all posts with certain meta data
- How do I find the first item in the post array?