accessko
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Next Page Link doesn’t existsI’ve replaced the $paginate_base variable on line 4 into:
$paginate_base = 'https://www.accessko.nl/weblog/index.php';
It seems to work fine now. I hope that this was the solution.
Forum: Fixing WordPress
In reply to: Next Page Link doesn’t existsDoes anybody got a suggestion what I have to do with get_pagenum_link()?
As ryans149 said, I got an error an navigation.php on line 4.This is the code of the navigation.php:
<?php global $wp_rewrite; $paginate_base = get_pagenum_link(1); if (strpos($paginate_base, '?') || ! $wp_rewrite->using_permalinks()) { $paginate_format = ''; $paginate_base = add_query_arg('paged', '%#%'); } else { $paginate_format = (substr($paginate_base, -1 ,1) == '/' ? '' : '/') . user_trailingslashit('page/%#%/', 'paged');; $paginate_base .= '%_%'; } echo '<div class="page_navi clearfix">'. "\n"; echo paginate_links( array( 'base' => $paginate_base, 'format' => $paginate_format, 'total' => $wp_query->max_num_pages, 'mid_size' => 2, 'current' => ($paged ? $paged : 1), 'type' => 'list', 'prev_text' => '«', 'next_text' => '»', )); echo "\n</div>\n"; ?>
Forum: Fixing WordPress
In reply to: Next Page Link doesn’t existsThx for the help. The code of the index.php file is:
?php get_header(); ?>
<div id=”contents” class=”clearfix”><div id=”left_col”>
<?php $options = get_option(‘mc_options’); ?>
<?php $odd_or_even = ‘odd’; ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?><div class=”post_<?php echo $odd_or_even; ?>”>
<div class=”post clearfix”>
<div class=”post_content_wrapper”>
<h2>“><?php the_title(); ?></h2>
<div class=”post_content”>
<?php the_content(__(‘Lees verder’, ‘monochrome’)); ?>
</div>
</div>
<dl class=”post_meta”>
<dt class=”meta_date”><?php the_time(‘Y’) ?></dt>
<dd class=”post_date”><?php the_time(‘d’) ?><span>/<?php the_time(‘m’) ?></span></dd>
<?php if ($options[‘author’]) : ?>
<dt><?php _e(‘POSTED BY’,’monochrome’); ?></dt>
<dd><?php the_author_posts_link(); ?></dd>
<?php endif; ?>
<dt><?php _e(‘CATEGORY’,’monochrome’); ?></dt>
<dd><?php the_category(‘
‘); ?></dd>
<?php if ($options[‘tag’]) : ?>
<?php the_tags(__(‘<dt>TAGS</dt><dd>’,’monochrome’),’
‘,'</dd>’); ?>
<?php endif; ?>
<dt class=”meta_comment”><?php comments_popup_link(__(‘Plaats reactie’, ‘monochrome’), __(‘1 Reactie’, ‘monochrome’), __(‘% Reacties’, ‘monochrome’)); ?></dt>
<?php edit_post_link(__(‘[ EDIT ]’, ‘monochrome’), ‘<dd>’, ‘</dd>’ ); ?>
</dl>
</div>
</div><?php $odd_or_even = (‘odd’==$odd_or_even) ? ‘even’ : ‘odd’; ?>
<?php endwhile; else: ?>
<div class=”post_odd”>
<div class=”post clearfix”>
<div class=”post_content_wrapper”>
<?php _e(“Sorry, but you are looking for something that isn’t here.”,”monochrome”); ?>
</div>
<div class=”post_meta”>
</div>
</div>
</div>
<?php endif; ?><div class=”content_noside”>
<?php include(‘navigation.php’); ?>
</div></div><!– #left_col end –>
<?php get_sidebar(); ?>
</div><!– #contents end –>
<div id=”footer”>
<?php get_footer(); ?>Forum: Fixing WordPress
In reply to: Next Page Link doesn’t existsDo I have to add the <?php wp_link_pages(); ?> code in my index.php file to fix this?
Forum: Fixing WordPress
In reply to: Next Page Link doesn’t exists/index.php/%year%/%monthnum%/%day%/%postname%/