WordPress/jQuery pagination plugin for multiple lists
I’ve used jpaging before which is simple ,easy and highly customizable.
I’ve used jpaging before which is simple ,easy and highly customizable.
The only way to really know if it’s going to be a 404 is to let WordPress try to load it and check results before WP sends headers. If you put this in your functions.php (not on a live site! use a dev mirror.), then visit a page that throws a 404, you can see … Read more
you might wanna try wp_reset_query(); at the end of your loops
This worked for me: include (‘wp-blog-header.php’); and before: while (have_posts()) : the_post(); you have to create wp_query, so do this for example: query_posts(‘cat=1’); // or any other query args you wish
Change your query_posts call to include global $query_string variable. Your query_posts should look like following: <?php global $query_string; query_posts( $query_string . ‘cat=”.$cat ); ?>
“The problem I have it that on the first 8 pages only 1 article is displayed.” That would be due to this line of code: if ( $wp_query->get( ‘paged’) < 8 ) { $wp_query->set( ‘posts_per_page’, 1); } See here for more info: codex.wordpress.org/Class_Reference/WP_Query#Pagination_Parameters EDIT: Try adding brackets as mentioned by @kaiser… Here’s your original code … Read more
If this is a new WordPress install, it is likely that you don’t actually have enough posts to require pagination, and thus the pagination links aren’t appearing. Quick test: ensure you have at least two posts, then go to Dashboard -> Settings -> Reading, and change the “Posts Per Page” setting to 1. Do you … Read more
I’ve figured out the solution to my problems. Here’s what I did… Note: This is considering the posts, thus comments, are under the ‘Article‘ post-type, which thus create the permalink such as this: site.com/article/post-name/#comments. Adjustments should be made for other uses. To fix problem #1 & #3: if ( !is_admin() ) add_filter(‘get_comment_link’, ‘my_comment_post_redirect’); function my_comment_post_redirect($location){ … Read more
Flush your permalinks whenever you add/remove/modify a taxonomy or post type. You can do this in the backend by simply going to the permalinks page and resaving
Store your new WP_Query() in a variable Globalize $wp_query Move the $wp_query swap-hack to after your new WP_Query() generation Pass the variable to $wp_query, not the new WP_Query() call itself. e.g. <?php // Custom query args $press_query_args = array( ‘post_type’ => ‘press’, ‘orderby’ => ‘post_date’, //’showposts’ => ’10’, ‘posts_per_page’ => $paged, ); // Custom query … Read more