For Elementor users, this fixes the Archive widget pagination not working, 404 issue
]]>I tried re-adding the shortcode – [nooz view=”auto” use_pagination=”yes”] and reapplying and updating to see if it was just something that got confused and broken… but that didn’t work.
If I could shut off the pagination in Latest and not have it aggregate all of the press coverage and releases, and only show the top 5, that would be fine. BUT there isn’t a way to only inform the Latest tab to show latest 5 and still have the Press Coverage page show all and continue to paginate them.
HELP please.
No idea how to fix this and I can’t find a suitable plug-in option to swap out. I also tried doing a query and pulling the press coverage pieces into a different block but it couldn’t read them across the Nooz plugin.
Anyone have any tips, fixes, or a band-aid option for now until this is fixed?
]]>Pagination looks like this:
<li><a href="https://pinballmedics.ca/wp-admin/admin.php?page=sucuriscan_lastlogins&paged=1" class="sucuriscan-pagination-link sucuriscan-pagination-active">1</a></li><li><a href="https://pinballmedics.ca/wp-admin/admin.php?page=sucuriscan_lastlogins&paged=2" class="sucuriscan-pagination-link">2</a></li><li><a href="https://pinballmedics.ca/wp-admin/admin.php?page=sucuriscan_lastlogins&paged=3" class="sucuriscan-pagination-link">3</a></li><li><a href="https://pinballmedics.ca/wp-admin/admin.php?page=sucuriscan_lastlogins&paged=4" class="sucuriscan-pagination-link">4</a></li><li><a href="https://pinballmedics.ca/wp-admin/admin.php?page=sucuriscan_lastlogins&paged=5" class="sucuriscan-pagination-link">5</a></li>
…and so on.
This is occuring on all the sites I administer (6).
https://www.ads-software.com/plugins/sucuri-scanner/
]]>After updating to 4.3 pagination on the blog of our site has broken.
Visiting /blog/page/2/ returns a 404.
My theme is just using the if have_posts() while have_posts() loop. But I have ruled out the theme by trying the twenty-fifteen theme and the 404 persisted. The only thing that has worked so far is returning to standard permalink.. but we’d like to keep our custom structure.
Here is what I’ve tried so far:
I was able to get it working by going back to default permalinks. However, we want to use /%post-name%/ and returning to this causes the 404 again.
As far as I know nothing has changed with the server, but we host with Hostgator so who knows… It seemed to be working before updating to 4.3, but maybe it had broken at some point prior to the update and I just didn’t realize.
I feel I’ve ruled out the theme, plugins, htaccess rules. I’m not sure what else to check.
Any help would be appreciated.
]]>There is a snippet of index.php:
<?php get_header(); ?>
<div id="fronter"></div>
<div id="lines"></div>
<div id="slider_area">
<div id="wrapsli">
<div id="lefts">
</div>
<div id="slider_on">
<?php query_posts('cat=6&showposts='.get_option('posts_per_page')); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<h2><?php the_title(); ?></h2>
<div class="entry">
<?php the_content() ?>
</div>
<?php endwhile; ?>
<?php endif; ?>
</div>
</div>
<div id="rights">
</div>
</div>
</div>
<div id="lines"></div>
<div id="wrap">
<div class="col1">
<?php
if (is_paged()) $is_paged = true;
$paged = (get_query_var('paged')) ? get_query_var('paged') : 0;
$args = array(
'post__not_in' => $shownslides,
'tag__not_in' => $tagids,
'paged'=> $paged
);
query_posts($args);
$home_content = get_option('woo_home_content');
$home_boxes = get_option('woo_home_boxes');
if (have_posts()) :
$full = FALSE;
$width = get_option('woo_full_thumb_width');
$height = get_option('woo_full_thumb_height');
if( $home_boxes == 'On') { $small = TRUE; }
elseif ($home_boxes == 'Off') { $full = TRUE; }
else { $large_posts = intval($home_boxes); }
$counter = 0;
while (have_posts()) : the_post();
$counter++;
$post_class = 'full';
if( ($counter > $large_posts OR $small == TRUE) AND $full == FALSE)
{
$width = get_option('woo_boxed_thumb_width');
$height = get_option('woo_boxed_thumb_height');
if( $small == FALSE ) $counter = 1;
$small = true;
if ($counter%2 == 0 ) { $post_class = 'fr'; }
else { $post_class = 'fl'; }
}
?>
<?php if ( in_category('1') ) { ?>
<div class="post-outer post <?php echo $post_class; ?>">
<div class="post-inner post-alt">
<h2><a title="<?php _e('Permalink to ',woothemes); ?><?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<div id="titus">
<span class="title-meta"><span class="udate">publicado // </span><span class="date"><?php the_time('d F Y'); ?></span> <span class="udate">autor // </span><span class="date"><?php the_author();?></span> <span class="udate">categoría // </span><span class="date"><?php the_category('category_name');?></span> <span class="udate">comentarios //</span><span class="date"><?php comments_popup_link(__(' 0',woothemes), __(' 1',woothemes), __(' %',woothemes)); ?></span> </span>
</div>
<div style="clear:both;"></div>
<?php if ($home_content == 'false') { ?>
<p><?php echo strip_tags(get_the_excerpt(), '<a><strong>'); ?></p>
<?php woo_get_image('image',$width,$height); ?>
<br />
<div id="last">
<a class="more-link" title="<?php _e('Permalink to ',woothemes); ?><?php the_title(); ?>" href="<?php the_permalink() ?>"><?php _e('SEGUIR LEYENDO »',woothemes); ?></a>
<?php } else { ?>
<?php the_content(__('Continue Reading',woothemes)); ?>
<?php } ?>
</div>
</div><!--/post-inner-->
</div><!--/post-->
<?php if ($counter%2 == 0 AND $small == TRUE ) { echo '<div style="clear:both;"></div>'; } ?>
<?php } ?>
<?php endwhile; ?>
<?php endif; ?>
<div class="fix"></div>
<div class="more_entries">
<?php if (function_exists('wp_pagenavi')) wp_pagenavi(); else { ?>
<div class="fl"><?php previous_posts_link(__('« Newer Entries ',woothemes)) ?></div>
<div class="fr"><?php next_posts_link(__(' Older Entries »',woothemes)) ?></div>
<br class="fix" />
<?php } ?>
</div>
<div class="fix"></div>
</div><!--/col1-->
</div>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
What am i doing wrong?
my regards.
]]>