you can get comment link by wp function
$args = array(
'number' => '1',
'post_id' => your_post_id, // use post_id, not post_ID
);
$comments = get_comments($args);
<a href="https://wordpress.stackexchange.com/questions/108654/<?php echo get_comment_link( $comments->comment_ID ); ?>">postname</a>
Related Posts:
- Most liked page not displaying posts
- Query get post,how to add comment box
- How to get posts and comments amount per hour, per year and per month?
- Get all comments of author’s posts
- Can’t get full post title if there a spaces in title
- How to display only one category in a custom post type?
- Adjust the order for returned posts
- Merge get_comments & get_posts into a single query
- Query how many items to show in shortcode
- How to Orderby Comments by post title?
- Get posts by name and taxonomy term
- WP_Query Authors OR Categories
- Get Posts that are in the current month or later
- Display post category in foreach loop with category link
- Sticky post appears twice
- do_shortcode within post query
- If modified on same day, show only time
- WordPress Custom Fields (Checkboxes with multiple values)
- How Can I Query a Specific Page From a MultiPage paginated Post
- How to allow logged in users to post anonymously
- Why WP_Query(‘showposts=5’) shows only 1 post?
- Get Meta Key Value While Saving Post
- Email entire post contents
- How to make number of blog posts a custom field?
- Update all comments time to random dates?
- Enable Comments Box On Custom Post Type
- filter RSS feed in URL
- Turn On Comments On Custom Post Types in Directory Theme
- WordPress custom Query for Posts in Category display posts multiple times
- Emojis replaced by ‘?’ automatically
- Move comments only from one WP installation to another
- get query() without post content?
- Second comments section for one post/page
- How can I setup a relationship using categories in WordPress?
- Exclude the first ‘n’ number of posts of a tag from home page?
- A friend wants to make a comment on one of my articles, she has to be logged to wordpress?
- Creating a post from data returned from HTML form
- Get all images in post and comments like Twitter before post title
- Is it possible to paste a link without tags and make it directly a link in a post?
- Showing author page if user has no post
- Customizing Comments on Posts
- posts_per_page option limits the number of Gallery items
- List authors with the last post title and order by last post date
- WordPress Comment posting problem
- How i can limit period of post publication?
- What do comments with […] mean?
- How to setup a query to output posts by groups of five?
- Display post category in foreach loop
- What do these phpMyAdmin errors mean on my WordPress databaes?
- Internal post link creates comments on its own
- Exclude current custom post on single post
- Dynamically switch template on click
- Show comment number per author per day
- Get all custom post types excepted some…
- Page template is accessing the incorrect posts?
- First x post with another template then the others
- Why Query is returning empty array?
- Delete all drafts?
- SQL Command for restoring trashed comments
- Howto show comment count by post in post?
- Wrap every month posts in div
- How to list commenters and days since last commented
- How do you change the comment count in the back end posts list, to reflect unapproved comments, rather than all comments?
- Inner join overrides Advanced Custom Fields plugin’s get_field [closed]
- meta_value timestamp older than now
- Counter is skipping post when I still want it visible [closed]
- Do not show children of a category
- post__in not working with pre_get_posts, but post__not_in does work
- Hide comments and posts posted by other user
- Let both the admin and post author update comment meta
- How to get all post_parents of a post?
- Get post meta retrieving wrong value
- Query for first 3 posts to change the look and feel
- Adding a user’s ID behind the tag ref link address
- Why posts array is empty?
- How can I remove the first two words and shorten get_the_title()
- Query posts and filter at query time by value of custom meta
- Run query_posts if SESSION is empty?
- WordPress query undefined offset in loop
- Very complex post query
- Delete post revisions only for a single post
- How to style archive post titles… but only those posts who have comments?
- How to give classname to post if post has no content?
- Display post by click on the link
- Queries take 120+ seconds on my large WordPress site
- Exclude some posts from displaying in wp_query based on some condition
- Related Posts function not working
- How to retrieve certain number of images from a wordpress post?
- Sort Events by Venue Title – Sort Post set by related post ids
- Posting a comment redirects admin/users to blank page
- Get posts associated with media attachment
- wp query custom orderby not custom field
- How to enable comments meta box for other author posts?
- Query post for today, if no post get the previous one
- Custom Select Query pagination not working properly
- Query post by meta key of another table
- Sort / Filter Queries
- Comments as part of a post
- Query post category & remove any post id
- Display the latest post from some selected authors