Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter josephquenta

    (@josephquenta)

    I found the solution: change the theme.

    But, I want to know why?, I used https://underscores.me/ on the template with the problem.

    Help me please.

    Thread Starter josephquenta

    (@josephquenta)

    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!

    Thread Starter josephquenta

    (@josephquenta)

    thanks!

    Plugin Author Doeke Norg

    (@doekenorg)

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Exported excel with rare characters’ is closed to new replies.