vtmnD
Forum Replies Created
-
Forum: Plugins
In reply to: [My Post Order] Ordering a loop by category (or similar tagging method)I also tried this, same result.
<?php $args = array( 'section_name' => 'section1', 'section2', 'section3', 'section4' ); $custom_query = new WP_Query($args); while($custom_query->have_posts()) : $custom_query->the_post(); ?>Forum: Plugins
In reply to: [My Post Order] Ordering a loop by category (or similar tagging method)This is the code I put in at the beginning of my loop, and it doesn’t affect the ordering of the posts at all. It just posts in the default order. All four of my categories belong to a corresponding section. I don’t get it.
<?php $args = array( 'section_name' => 'section1', 'section_name' => 'section2', 'section_name' => 'section3', 'section_name' => 'section4', ); $custom_query = new WP_Query($args); while($custom_query->have_posts()) : $custom_query->the_post(); ?>Any ideas?
Forum: Plugins
In reply to: [My Post Order] Ordering a loop by category (or similar tagging method)I am just trying to reorder the loop query globally, so that posts that I have determined to go in one category are queried before the next category. I thought I would try to do this with a custom meta value rather than engineer it around category name, so I threw this in the loop:
<?php $args = array( 'post_status' => 'publish', 'meta_key' => 'keyName', 'orderby' => 'meta_value_num', 'order' => 'DESC' ); $custom_query = new WP_Query($args); while($custom_query->have_posts()) : $custom_query->the_post(); ?>And I also took the trouble to order each post with a meta value, i.e. for Section 1 posts made the values a 1, Section 2’s I made a 2, etc. But the loop doesn’t execute. Wondering if I am doing something wrong with the syntax?
Forum: Themes and Templates
In reply to: Reduce the header width and move up the sidebar areaI wondered why no response then I figured it must be tough love. Thanks guys you’re so right I could figure it out on my own.
Forum: Themes and Templates
In reply to: Reduce the header width and move up the sidebar areaI should also link to the page listing the build code, so you can see how it was structured.