WordPress.org

Ready to get started?Download WordPress

Forums

'Older Entries', Pagination, Loop issues (7 posts)

  1. birdrockdesigns
    Member
    Posted 2 years ago #

    I seem to have run into an issue that has various solutions posted in these forums, but I've not had any success in implementing them.

    The situation is this: I have a site, and one of the pages created, 'Reviews' has been assigned as the Front Page. Using Custom Fields, I've assigned posts from the category 'Reviews' to show only on the Reviews/Home page.

    I followed the coding here http://codex.wordpress.org/Pages and was able to generate a page with 10 posts. However, when I click on 'Older Entries' - older posts do not display, instead the page merely seems to refresh with no change to the content.

    The site I'm working is here: http://www.hungrywalrus.com

    I've added several plugins, deactivated them and still could not get the 'Older Entries' link to work. Please note, my theme is based on the 'Twenty Ten' theme, with very minor modifications. When I set the code for the Reviews page template back to the default Twenty Ten code - nothing shows up on the page.

    Here is the code for the Reviews template

    [Code moderated as per the Forum Rules. Please use the pastebin]

    The category ID for Reviews posts is 4. The Reviews page uses the reviews template as outlined above. I added the pagination plugin and still get this url when clicking on the next page: http://www.hungrywalrus.com/page/2/

    Again, the content doesn't change, it doesn't show previous posts. However, on the 'Travel Blog' page - clicking on pagination shows previous posts.

    So, my questions include

    1) Does the fact that the Reviews page is the Front Page affect pagination and or the code in the template?
    2) How can I fix this issue so the Reviews page retrieves previous posts
    3) I'm sure there are errors in the template code, and if so, could someone point them out? My understanding of PHP is basic, so I might to a little extra help with the code.

    Thanks!

  2. birdrockdesigns
    Member
    Posted 2 years ago #

    I can't seem to edit my original post, so here's the link to the pastebin code for the Reviews/Home page template

    http://pastebin.com/9hWMvtjK

  3. birdrockdesigns
    Member
    Posted 2 years ago #

    It must be a url or permalink issue with the 'home' page. If I assign the Front Page to something else, the 'Reviews' section displays just fine. And the pagination to older entries works.

    http://www.hungrywalrus.com/reviews/page/2/ works fine when I type it manually into the address bar.

    The link for next page or older entries shows http://www.hungrywalrus.com/page/2/

    Does anyone know how this can be adjusted? If a page is assigned to the Front Page, how do you alter the url or permalink structure? Am I on the right path?

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    Bump deleted.

    Have you tried:

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the Twenty Eleven theme to rule out any theme-specific problems.

    - resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

  5. birdrockdesigns
    Member
    Posted 2 years ago #

    Yes. I've followed instructions from other threads.

    Deactivated all plugins, added plugins one by one - to no effect. I did this through the WP admin, and did not go into mySQL via phpMyAdmin

    I switched to Twenty Eleven and the home page goes blank. I switched to the default Twenty Ten (my theme is customized or 'child' theme based on Twenty Ten) and pagination does not work. My current workaround is to create a separate loop template for the Reviews page and also to changed the Front Page to 'Posts Page' and selecting 'Reviews' - I'm concerned that this would be considered duplicate content.

    I can provide a list of plugins I'm using if you think that would help.

    Thanks.

  6. esmi
    Forum Moderator
    Posted 2 years ago #

    I switched to Twenty Eleven and the home page goes blank.

    Upload a fresh copy of Twenty Eleven. And try resetting the plugins folder.

  7. birdrockdesigns
    Member
    Posted 2 years ago #

    The issue is still unresolved.

    For whatever reason, if I use a plugin like wp-paginate, or code my own pagination, it doesn't matter - whenever you set a 'static' page as front page, but you have a category of posts on the front page - the pagination (or older entries/newer entries links) do not work.

    template page code here http://pastebin.com/ykrjmD68

    static page uses custom fields (category = category name) This pulls posts only from a particular category.

    What am I missing in my template code? The pagination only stumbles when I set this to front page.

    Any help in resolving this matter is appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic