I found the solution: change the theme.
But, I want to know why?, I used http://underscores.me/ on the template with the problem.
Help me please.
Well, I found the problem, is a function on my functions.php:
function custom_pagination($numpages = ”, $pagerange = ”, $paged=”) {
if (empty($pagerange)) {
$pagerange = 2;
}
global $paged;
if (empty($paged)) {
$paged = 1;
}
if ($numpages == ”) {
global $wp_query;
$numpages = $wp_query->max_num_pages;
if(!$numpages) {
$numpages = 1;
}
}
$pagination_args = array(
‘base’ => get_pagenum_link(1) . ‘%_%’,
‘format’ => ‘page/%#%’,
‘total’ => $numpages,
‘current’ => $paged,
‘show_all’ => False,
‘end_size’ => 1,
‘mid_size’ => $pagerange,
‘prev_next’ => True,
‘prev_text’ => __(‘«’),
‘next_text’ => __(‘»’),
‘type’ => ‘array’,
‘add_args’ => false,
‘add_fragment’ => ”
);
$paginate_links = paginate_links($pagination_args);
if ( ! empty( $paginate_links ) ) : ?>
<ul class=”pagination”>
<?php foreach ( $paginate_links as $key => $page_link ) : ?>
<li class=”paginated_link<?php if ( strpos( $page_link, ‘current’ ) !== false ) { echo ‘ active’; } ?>”><?php echo $page_link ?>
<?php endforeach ?>
<?php endif;
}
thanks!
Because you are getting an excel-file, it’s not that you are echoing anything by mistake. But maybe there are some output headers being added to the excel-file. It’s really not possible for me to say. I’ve installed the theme, and can’t reproduce the error.