chand_4rana
Forum Replies Created
-
Forum: Plugins
In reply to: [Transposh WordPress Translation] widget does not show.i m working on localhost.
Forum: Themes and Templates
In reply to: After WP 3.4 Upgrade the pagination setup not working anymoreplease try this in function.php
it is work for me//for pagination 404 error page
function my_post_queries( $query ) {
// not an admin page and it is the main query
if (!is_admin() && $query->is_main_query()){
if(is_home()){
global $paged,$exl_posts;
if(get_option(‘show_on_front’)== ‘posts’)
{
if ( get_query_var(‘paged’) ) $paged = get_query_var(‘paged’);
if ( get_query_var(‘page’) ) $paged = get_query_var(‘page’);
}
else
{
if ( $wp_query->query_vars[‘paged’] ) $paged = $wp_query->query_vars[‘paged’];
if ( $wp_query->query_vars[‘page’] ) $paged = $wp_query->query_vars[‘page’];
}
$arg = array( ‘paged’ => $paged);
if(CUSTOM_POST_TYPE1)
{
$arg[‘post_type’] = CUSTOM_POST_TYPE1;
}
query_posts($arg);
}
}
}
add_action( ‘pre_get_posts’, ‘my_post_queries’ );cheers…
Forum: Themes and Templates
In reply to: WordPress 3.4 broke my paginaton setupHello,
Here is my product listing code
<?php
global $posts,$Product;
$temp = $wp_query; $wp_query= null;
$wp_query = new WP_Query(‘posts_per_page=’.$limit.’&post_type=products&paged=’ . $paged);
if($wp_query->have_posts())
{
?>
<?php _e(‘Switch View’);?>
<ul style=”display: block;” class=”display <?php echo $General->all_product_listing_format();?> category_list”>
<?php
while($wp_query->have_posts())
{
$wp_query->the_post();
$Product->product_listing_li($post);
}
?><?php } ?>
with this code pagination not work
what is wrong in this can anybody solve this issueThanks
Forum: Themes and Templates
In reply to: After WP 3.4 Upgrade the pagination setup not working anymoreHello,
I have same problem here , i have query like this
$post_info = $wpdb->get_results($srch_sql);
Searching works perfectly and pagination looks fine but when i navigate the next page i m facing 404 page.
can anybody solve my problem…….?
Thanks
Forum: Plugins
In reply to: [WP-PageNavi] [Plugin: WP-PageNavi] wp_pagenavi does not work with offset?Hello,
I have same problem here , i have query like this
$post_info = $wpdb->get_results($srch_sql);
Searching works perfectly and pagination looks fine but when i navigate the next page i m facing 404 page.
can anybody solve my problem…….?
Thanks