alekso,
Install the wp-page-numbers plugin: http://wordpress.org/extend/plugins/wp-page-numbers/ This should give you what you are looking for. For an example: http://www.doc4design.com look under Web or Identities then toward the bottom of the page.
Check for this:
<?php next_posts_link('« Older Entries') ?>
and
<?php previous_posts_link('Newer Entries »') ?>
and edit it
Thread Starter
alekso
(@alekso)
How do i use this plugin? I have installed it and activate it. Nothing is changed!
Thread Starter
alekso
(@alekso)
I have did all it says in help of this plugin but nothing works
Thread Starter
alekso
(@alekso)
<?php if (is_single()) : ?>
<div class=”browse”><?php previous_post_link(‘« %link’) ?> <?php next_post_link(‘ %link »’) ?></div>
<?php else : ?>
<div class=”browse”><?php posts_nav_link() ?></div>
<?php endif; ?>
This is my code at browse.php. What should i change with what? I have tryied all the posibilities and it doesn`t work
browse.php? According to the installation instructions, the code should go in index.php (and any other theme template where you want these kind of paginated links). Why browse.php?
Thread Starter
alekso
(@alekso)
Because only there i have found this next, previous … etc. Nothing in archive, index or other places
Thread Starter
alekso
(@alekso)
i have found this in index.php <?php include (TEMPLATEPATH . ‘/browse.php’); ?>
same thing in archive.php and search.php.
Usage
Replace the the ‘nextpostslink()’ and ‘previouspostslink()’ with the code below in your theme (archive.php, index.php or search.php).
<?php if(function_exists(‘wp_page_numbers’)) { wp_page_numbers(); } ?>
This is what the plugin usage says.
Tell me what to change it that code for WP – Page Number plugin to work
yes, it is possible to have browse.php.. it depends on your theme..
But for general sense, it should be in index.php
alekso,
Can you direct us to the theme you are using so we can take a look at the code?
Thanks