$wpdb->flush(); breaks the loop

In the code you posted in your other question, your call to flush() is using the wrong variable: $wpdp->flush();. Since this is an undefined variable, it’s likely that you’re simply getting a PHP runtime error at this point, stopping page execution.

Pagination on 2nd loop

The issue is that before your custom queries load, WordPress runs the main taxonomy query (all results in that tax term, 10 per page). On page 6, the main query is trying to load posts 51-60, and since they don’t exist the page 404’s before you have a chance to load your custom query. Customize … Read more

Single page site (WordPress) including posts

To include posts and pages in the loop, use the ‘post_type’ argument: <?php $wp_query = new WP_Query(); $args = array( ‘post_type’ => array(‘post’,’page’) ); $wp_query->query($args); while ($wp_query->have_posts()) : $wp_query->the_post(); ?> <?php the_content(); ?> <?php endwhile; ?> http://codex.wordpress.org/Class_Reference/WP_Query

Hide featured post on second page

In short no – the template used is based on the query, and when paginating you are essentially repeating the same query, but for a different page. In general the template will be the same. archive.php can be used for most queries, but often preferable templates exist (e.g. category templates, tag templates, author templates etc.). … Read more

Running a loop with a custom query string on a custom page template

You should remove $query_string from the template. the Quesry string contains params specific to your page… your loop should look like this: <?php query_posts(“posts_per_page=10&cat=3&orderby=asc&paged=”.get_query_var(‘paged’)); if (have_posts()): while(have_posts()): the_post(); <!– your custom data here –> the_title(); the_content(); endwhile; endif; ?>

wp alchemy multiple image uploader output images to template

Do you have any output code we can reference? Put this in your Theme file: <img src=”https://wordpress.stackexchange.com/questions/45576/<?php get_the_value(“imgurl’); ?>” style=”width:100px;height:100px” /> if you have multiple you’ll have to go through a foreach loop: <?php foreach ($meta[‘imgurl’] as $img ) { echo ‘<a href=”#” /><img src=”‘. $img .'” /></a>’; } ?> Hope this helps, I don’t … Read more

how do i remove posts from a WP_Query so the pagination is right?

Rather than querying all posts and then only displaying those that match the criteria, query for posts that match the criteria. WP_Query allows you to do just that with its meta-key/meta-value attributes. For instance, to get posts where the custom field unreleased is to ‘false’, somewhere before the loop: global $wp_query; $customField = array( ‘meta_key’ … Read more