ashercharles
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: 404 error on pagination using custom queryJust sorted it out by adding this to my functions.php
add_filter('pre_get_posts', 'query_post_type'); function query_post_type($query) { if(is_category() || is_tag()) { $post_type = get_query_var('post_type'); if($post_type) $post_type = $post_type; else $post_type = array('post','coupons','savingstips'); $query->set('post_type',$post_type); return $query; } }Where ‘coupons’ and ‘savingstips’ were my custom posts I can now query and use pagination
Forum: Fixing WordPress
In reply to: 404 error on pagination using custom queryStill no luck this is what I have so far
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts(array( 'post_type' => 'coupons', 'category__in' => array(get_the_category('cat')), 'posts_per_page' => 1, 'paged'=> $paged, 'paged' => get_query_var('paged') )); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> // loop content <?php endwhile; ?> <?php posts_nav_link(' ','← Newer Posts','Older Posts →'); ?> <?php endif; ?> <?php wp_reset_query(); ?>Forum: Fixing WordPress
In reply to: 404 error on pagination using custom queryThanks for the reply, however changing posts_per_page to any number still comes up with the 404 error
Forum: Plugins
In reply to: [Genesis Grid] pagination not working with my custom templateI am having an issue, this is my code to pull in all posts from a custom post type and from the current category, I have tried every pagination fix I can find in 8 hours of searching but nothing will work. I have taken my code back to the original to show you my starting point.
<?php $args = array_merge( array('posts_per_page' => '1', 'post_type' => 'coupons', 'category__in' => array(get_the_category('cat')) ) ); query_posts($args); ?>I couldn’t figure out how to post a new topic so I have posted it here, I really hope someone can help.
Link to site, username and password are ‘test’ http://squasha.com/tech/computers/
Do you know when the export function will be updated to work with wpec 3.8? I have a client with over 200 orders a day and was using this plugin prior to 3.8 and now needs it to work.
Is there any time frame on the update?
thanks in advance
Forum: Plugins
In reply to: [Plugin: WP BANNERIZE] banner does not appearI have been using this plugin for a while now, I can confirm that this new version is broken. Lucky I had a copy of WP Bannerize ver. 2.4.11 which works fine.