WordPress.org

Ready to get started?Download WordPress

Forums

not working (11 posts)

  1. tal1481
    Member
    Posted 2 years ago #

    Hi there,

    I have spent the last 24 hours searching various forums for a solution. I am not a newbie but am most definitely not an expert, so any help that can be offered is greatly appreciated.

    My problem is this, I have written an article that has 12 tips in how to avoid viruses. The blog can be read here: http://www.wefixcomps.co.uk/2012/01/27/computer-repair-avoiding-viruses/

    Now as you can see, after tip 2 it just cuts off - this is because I used
    <!--nextpage--> in the HTML code, I would love to separate the long post into 12 pages, one for each tip - but I can't for the life of me work out why this isn't working. I have read various codex pages but can't work it out.

    Thanks for reading,

    T

  2. kostas123
    Member
    Posted 2 years ago #

    Did you mean something like paginating ?
    If so , take a look at this plugin .

  3. tal1481
    Member
    Posted 2 years ago #

    Hi,

    Yes have looked at that and other plugins but the problem I have is this bit of code:

    Replace your existing previous_posts_link() and next_posts_link() code block with the following....

    I cannot find the previous_posts_link() in any of the PHP - I have checked index.php, footer.php, loop.php, functions.php etc and just cannot locate it - I am using an RT-theme from theme forest.

    Do you have any suggestions or tips?

    Thanks for the quick reply - greatly appreciated....

  4. deepbevel
    Member
    Posted 2 years ago #

    You need something like this code in your template for the nextpage to work:

    <?php wp_link_pages(array('before' => __( '<p class="cc_pagecount"><strong>Pages:</strong> ', 'cc' ), 'after' => '</p>', 'next_or_number' => 'number')); ?>

    perhaps it wil work as is.

  5. deepbevel
    Member
    Posted 2 years ago #

    Replace your existing previous_posts_link() and next_posts_link() code block with the following....

    previous-next post nav is diffrent than splitting pages with pagination.

  6. tal1481
    Member
    Posted 2 years ago #

    Thanks for the reply,

    Yes ideally I would like pagination but as I said I just couldn't work out where the code was located for me to replace it and when I read about previous-next, I thought I could use that.

    I essentially just don't want to bore people with a long post and would like to have the option to breakup a long blog into pages so that people are more inclined to keep reading that specific blog.

  7. deepbevel
    Member
    Posted 2 years ago #

    Why not just make each tip a post, put them all in one category page?, then you' be using post nav instead of pagination, you'd have more options to display your nav, amoung other things.

  8. tal1481
    Member
    Posted 2 years ago #

    That's an excellent, excellent idea and I almost feel a fool for not thinking of it earlier!

    Thank you!

  9. tal1481
    Member
    Posted 2 years ago #

    Hi that didn't work out the way I wanted, the blog roll shows each tip as a page.

    Any ideas how to get pagination working with my theme?

  10. esmi
    Forum Moderator
    Posted 2 years ago #

    Looks like your theme isn't implementing wp_link_pages() correctly (if at all). But as this is a commercial theme, you need to seek support from the theme's vendors.

  11. deepbevel
    Member
    Posted 2 years ago #

    How about a category widget in the sidebar for nav?

    list-category-posts

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.