Query Page Content From Theme Options?

Figured it out myself, for anyone else that needs help here are the two options.. <!–Method 1–> <?php $query = new WP_Query(); $query->query(‘post_type=page&p=’ . of_get_option(‘slide_page1’));while ($query->have_posts()) : $query->the_post(); ?> <?php the_title(); ?> <?php endwhile; wp_reset_query(); ?> <!–Method 2–> <?php $slide1 = of_get_option(‘slide_page1’);?> <?php $loop = new WP_Query( array(‘p’ => $slide1, ‘post_type’ => array(‘post’, ‘page’), )); … Read more

Trying to reorder posts by custom field

You might want to take a look at the WooCommerce docs, there’s a good snippet there showing now to add custom sort orders. The link is http://wcdocs.woothemes.com/snippets/custom-sorting-options-ascdesc/ Once you’ve ‘defined’ your custom order you’ll of course need to set it as the default in the store settings.

List related terms + taxonomies

You probaby want get_terms(). WordPress keeps a count of the number of posts that use a taxonomy and you can filter your query using it: // get all the terms in the ‘category’ taxonomy $terms = get_terms(‘knife’); // list all the terms that have at least one post foreach ($terms as $term) { echo “{$term->name} … Read more