WordPress.org

Ready to get started?Download WordPress

Forums

Linking to the "Leave a Reply" anchor tag (2 posts)

  1. lightfoot33
    Member
    Posted 5 years ago #

    I developed this site for a photographer and she requested the comments section be "scrollable" under each post on the index page. I accomplished that by using comments.php and adding this code to the index page:

    <?php
    $wp_query->is_single = true;
    comments_template();
    $wp_query->is_single = false;
    ?>

    What I am trying to do next is to NOT show the "Leave a Reply" section(s) on the index page, but instead have a button or link that, when clicked on, takes the user to the "Leave a Reply" section on the individual post page using #respond anchor tags that I already have in place.

    Here is a link to the site to help give you a visual of where I am at:
    http://photosbyjennifer.com/blog/

    Any help would be appreciated!

  2. lightfoot33
    Member
    Posted 5 years ago #

    This is kind of a shameless bump, but also a question for future reference... should a question like this be made in the WP-Advanced forum instead of the How To and Trouble-Shooting one? I wasn't sure if the lack of response was because of that, or if it's just because the question is too specific to spark any interest...

Topic Closed

This topic has been closed to new replies.

About this Topic