# Jump-to-Comments Link in the Middle of Posts

> Adds a small "Join the discussion" link with the comment count halfway through posts, so engaged readers find the comments faster.

- Type: Universal
- Runs: Content half
- Category: [Comments](https://wpide.com/library/category/comments/)
- Tags: comments, engagement, navigation
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/jump-to-comments-mid-article/

## Code

```php
<?php if ( is_single() && ( comments_open() || get_comments_number() ) ) : ?>
<p class="wpide-jump-to-comments" style="margin:1.5em 0;padding:.6em 1em;border-radius:6px;background:rgba(127,127,127,.08)">
    <a href="#respond">
        <?php
        $wpide_count = (int) get_comments_number();
        echo esc_html( $wpide_count ? sprintf( _n( 'Join the discussion: %s comment so far', 'Join the discussion: %s comments so far', $wpide_count ), number_format_i18n( $wpide_count ) ) : 'Have a thought? Be the first to comment' );
        ?>
        &darr;
    </a>
</p>
<?php endif; ?>
```

## Notes

Links to the comment form (#respond), which exists in classic and block themes.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Jump-to-Comments Link in the Middle of Posts" in its snippet library and add it in one click; or create a new Universal snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
