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

  1. OliviaJLin
    Posted 4 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
    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
    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.


  2. Michael
    Forum Moderator
    Posted 4 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
    Posted 4 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:


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

    Thank you!

    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