WordPress.org

Forums

'older posts' / page links not working (15 posts)

  1. jeni_8686
    Member
    Posted 5 years ago #

    Hi,

    I have only just noticed that my page feature isn't working on my blog, http://www.jeniwren.com

    I know I need to fix the loops in one of my .php files but I am completely clueless!

    Thanks for your help in advance.

  2. Peter Boosten
    Member
    Posted 5 years ago #

    Looks like all links don't work (try 'about' or 'cv').

    Did you change something in your .htaccess (or did one of your plugins do that)?

    Peter

    EDIT: forget that about the about/cv page: NoScript blocked linkwithin.com, which obviously prevented me from clicking these links.

  3. jeni_8686
    Member
    Posted 5 years ago #

    I had listed them for some reason under private! Now they work :)

    The problem is the "older posts" link at the bottom of the index page won't load page 2, it just stays on the most recent posts...

  4. Peter Boosten
    Member
    Posted 5 years ago #

    your category links do the same (or all posts are in all categories)...

    Peter

  5. jeni_8686
    Member
    Posted 5 years ago #

    Oh, i had them listed as private because I don't want them listed in text under the header image - as can be seen now. Any ideas to fix that problem as well?!

  6. Peter Boosten
    Member
    Posted 5 years ago #

    You probably have the following code in your header.php:

    <?php wp_list_pages('title_li='); ?>

    which makes the pages display as a list. That part needs to be removed.

    Can you post the contents of your header.php on this site and post the link to it here?

    Peter

  7. jeni_8686
    Member
    Posted 5 years ago #

    My header code is here, I can't find the code mentioned above unfortunately - http://wordpress.pastebin.ca/1694498

    I came across a site whic suggests editing my post-template.php in the wp-includes:

    There's a part here which has an option to exclude specific pages from a list -
    function wp_list_pages($args = '') {
    $defaults = array(
    'depth' => 0, 'show_date' => '',
    'date_format' => get_option('date_format'),
    'child_of' => 0, 'exclude' => '',
    'title_li' => __('Pages'), 'echo' => 1,
    'authors' => '', 'sort_column' => 'menu_order, post_title',
    'link_before' => '', 'link_after' => ''

    The page numbers of about, CV and contact me are 2, 930 and 1373, so do I just put those into the 'exclude' section of the code?

    Thanks for your help so far, I appreciate it!

  8. jeni_8686
    Member
    Posted 5 years ago #

    Oh crap.. now my site's not loading!

  9. jeni_8686
    Member
    Posted 5 years ago #

    Any way i can recover the 2.8.4 version of post-template.php??!

  10. Peter Boosten
    Member
    Posted 5 years ago #

    You are a bit trigger happy, ermm, edit happy, right? ;-)

    Are you actually editing WP core files?

    Peter

  11. jeni_8686
    Member
    Posted 5 years ago #

    Problem fixed, but I am sure I need to edit the post-template.php in order to get rid of the irritating list.

    After I nearly broke my website I am going to ask if someone else other than me can help me change the necessary code :)

  12. jeni_8686
    Member
    Posted 5 years ago #

    Well I thought it would be as simple as adding the page numbers to the exclude function (as advised by another forum) but now I am not so sure!

    http://realiventblog.com/2007/04/04/how-to-hide-pages-in-wordpress/ <-- the page I got the advice from.

  13. Peter Boosten
    Member
    Posted 5 years ago #

    You never-ever-ever need to edit wp core files to change the looks of your site, all of that is done through your template files.

    Go and see if you find this function in your template files (of your theme): wp_list_pages

    Somewhere in this directory: wp-content/themes/JENIWREN/

    oh: DON'T EDIT ANYTHING YET!!! :-)

    Peter

  14. jeni_8686
    Member
    Posted 5 years ago #

    I managed to download a plugin to remove the offending page list finally. So that problem is sorted!

    So now the only issue is the older posts/page dilemma, and I will NOT edit any core files to fix it :)

  15. Peter Boosten
    Member
    Posted 5 years ago #

    Can you show us the contents of your .htaccess in your webroot?

    Peter

Topic Closed

This topic has been closed to new replies.

About this Topic