WordPress.org

Ready to get started?Download WordPress

Forums

Comments on page problems (9 posts)

  1. runspect
    Member
    Posted 4 years ago #

    Just in page, not in normal blog entries (posts).

    Sometimes the page shows all the comments & sometimes shows the message: "Comments are closed". (<?php wp_list_comments('type=comment&callback=mytheme_comment'); ?>)

    Anyway the number of comments is right (comments_number), but the title of the page is null (<?php the_title(); ?>).

    :-/

  2. runspect
    Member
    Posted 4 years ago #

    Also I cannot edit pages, for example, the <?php edit_post_link("Edit"); ?>

    links to http://domain.name/wp-admin/post.php?action=edit&post=

    remark that the page_id does not exist.

  3. jkeagle
    Member
    Posted 4 years ago #

    I also have a comment problem that is unique to my pages (and does not occur within my normal posts).

    Only on my pages (not my blog posts) I have duplicate entries of a non-existent comment.

    Check it out here:
    http://www.journeywithjanelle.com/about/

    This person "Cisco" nor his comment does not show up in my comment box but these comments shows up on all four of my pages, while the functionality of comments on each of my posts works perfectly.

    How do I find/remove these comments? Note again that they DO NOT show up in my comment box.

  4. NarNar
    Member
    Posted 4 years ago #

    i have the same problem, but only in a certain theme, such as Arras theme, but I have my page comments back with other theme such as 3col_rdmban_rr theme, I'm new to wordpress and know nothing about coding, may be someone will find out why if digging deep into those 2 theme.

  5. jkeagle
    Member
    Posted 4 years ago #

    Yes, the theme I have is Arras as well...

  6. runspect
    Member
    Posted 4 years ago #

    I've found the problem. It was in my theme.

    I've changed the function:

    if current_user_can('edit_post', $post_ID )

    (Before version 2.9 it worked fine, now it breaks the link & comments of the pages)

    to:

    if current_user_can('edit_posts')

    Now it works right.

  7. NarNar
    Member
    Posted 4 years ago #

    hi runspect, which file are the code need to change? thanks in advance.

  8. runspect
    Member
    Posted 4 years ago #

    In filters.php line 138 change:

    if (current_user_can('edit_post')) {

    to

    if (current_user_can('edit_posts')) {

    Best Regards.

  9. NarNar
    Member
    Posted 4 years ago #

    thanks, now it works ^.^

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.