Support » Fixing WordPress » not working

  • tal1481

    (@tal1481)


    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

Viewing 10 replies - 1 through 10 (of 10 total)
  • kostas123

    (@kostas123)

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

    tal1481

    (@tal1481)

    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….

    deepbevel

    (@deepbevel)

    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.

    deepbevel

    (@deepbevel)

    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.

    tal1481

    (@tal1481)

    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.

    deepbevel

    (@deepbevel)

    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.

    tal1481

    (@tal1481)

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

    Thank you!

    tal1481

    (@tal1481)

    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?

    esmi

    (@esmi)

    Forum Moderator

    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.

    deepbevel

    (@deepbevel)

    How about a category widget in the sidebar for nav?

    list-category-posts

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘not working’ is closed to new replies.