WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Help!: Read More, Comment, Next/Previous Button (3 posts)

  1. OliviaJLin
    Member
    Posted 3 years ago #

    Dear WordPress Community,

    I have spent over 8 hours looking for solutions to these problems on google and the wordpress.org forum, but nothing has worked.

    On my wordpress.org website http://www.olivialin.com clicking read more, leave a comment, or next page, does not work.

    Here is my index.php: http://wordpress.pastebin.ca/2026132

    Problem 1:
    Clicking read more on the post "12th test post" leads me to http://www.olivialin.com/?p=49#more-49
    I want it to show the full post/entry.

    Problem 2:
    Clicking leave a comment on the post "12th test post" leads me to
    http://www.olivialin.com/?p=49#respond
    but there are no boxes for me to comment or see what others have posted
    I want to see what others have posted and be able to post.

    Problem 3:
    Clicking next page on the post "12th test post" leads me to
    http://www.olivialin.com/?p=49&paged=2
    where I cannot see the next set of ten posts.
    I want to see the next set of ten posts.

    Thank you for your valuable time and help.

    Sincerely,
    OliviaJLin

  2. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    it seems that your theme dos not have a single.php template file;

    also, your index.php seems to have a custom query which always generates the same sequence of posts.

    first step:

    - make a copy of index.php and save it as single.php - then remove the custom query from that single.php

    if you need help with checking the templates, you could paste the code of index.php into a http://wordpress.pastebin.com/ and post the link to it here.

    then report back here if you still have probelems.

  3. OliviaJLin
    Member
    Posted 3 years ago #

    Hello alchymth,

    Thank you so much for your valuable time!

    I have made a copy of index.php and saved it as an uploaded single.php template file. But I could not find where the custom query was, so I tried to remove the only line in the index.php file that said "query" - query_posts('showposts=10');.

    Also, I uploaded a archive.php, and page.php file.

    Here are the revised and newly uploaded codes of the files:

    index.php
    page.php
    archive.php

    Please continue to offer your specific and helpful advise as the read more, comment, and next/previous button still do not work.

    Thank you!
    -OliviaJLin

    Edit: It seems like when I removed query_posts('showposts=10'); it caused the blog to automatically state "Sorry, no posts matched your criteria.". Thus, I have re-edited the query_posts to query_posts('showposts=5'); so that this is the current index.php

Topic Closed

This topic has been closed to new replies.

About this Topic