Thanks to Andy, this is working:
<li class="comment-btn">
<a href="https://wordpress.stackexchange.com/questions/233408/<?php echo get_comments_link( $post->ID ); ?>">
<i class="icon-comment"></i>
</a>
</li>
Related Posts:
- How to get permalink and title from post ID?
- Pretty permalinks for search results with extra query var
- Using $_GET variables in the URL?
- Removing leading zeros from custom permalink structure
- Does WordPress automatically do 301 redirect if I change permalink
- Broken wordpress permalinks on pages only
- Post being redirected to attachment post
- Without index.php in permalinks I get 404 across site
- Changing Permalinks to a Custom Permalink causes a 404 Error [no matter what I do]
- How to assign a Permalink to a Function
- Redirect user if it’s not logged in
- Random Alphanumeric Key URLs
- Date archive permalink modification
- How to get this JavaScript working with get_permalink
- Add a css class to a taxonomy permalink
- Search result permalink
- Permalinks Structure and 404 Question
- Change of permalink structure – redirects in htaccess breaks the archive links
- Change permalinks with ACF values
- Changing Custom Permalink with Filter
- Filter string like a slug
- WordPress installation in subfolder not working with nginx
- 404 with post name permalinks
- Should there be a trailing slash in the permalink
- Link to external URL
- Confusion about how a URL is being parsed
- Clean install – Changing permalinks in twentyeleven give 404
- Woocommerce Product Attribute Permalink doesn’t work?
- Adding page links to content that automatically convert to pretty permalinks?
- Permalink change redirects by WordPress [duplicate]
- WPML get permalink to the translated post from the original post
- page nested 3 levels deep shows 404
- Removing /author/ slug from URL gives 404
- Add custom post type name in term link?
- Can I create permalinks like this: /%post_type%/%postname%/
- Why the “Permalink” option is not showing in the “Settings”? [closed]
- WordPress post-name permalink redirects to site.com
- Custom permalink structure: /%custom-taxonomy%/%post-name%/ (without CPT slug)
- get_permalink() is not working after published
- How can I get this custom post type permalink structure? %custom_post_type%-%taxonomy%-%term-postname%
- get_permalink returning site home url instead of the url of slug being passed
- WordPress add_rewrite_tag working for Posts, but not working for Pages
- Woocommerce subcategory 404
- Host frontpage via example.com and everything else via example.com/blog
- WordPress can generate numeric permalinks, which then 404
- WordPress Automatic Update to 3.9.1 breaks Permalinks [closed]
- Static Text in Permalink
- Pre-populate Slug / Permalink with URL
- Permalink changes gives me 404 [closed]
- How do I make 301 redirection from `/%post_id%/` to `/%postname%/`?
- Allow Permalinks to Work with and without Hyphens
- WordPress permlink is not working
- Environment independent way to link to certain pages on frontend
- Using one slug/post-name for multiple pages
- Custom URL rewrites for templates
- Gutenberg output URL to post from attribute with post ID
- Broken wordpress site, non-working links and no access to wp-admin page
- How can I get the list of all pages URLs including their shortlink IDs?
- How do I remove /wordpress/ from my permalinks?
- How to change custom post type, blog post and page permalink by template?
- Page found with “Plain” permalink but not with “Post name”
- Post Name Permalink setup gives 404 error inside sub-directory
- How to use Specific URLs for some posts
- Change permalinks for specific pages
- How can you create a Permalink structure on a WordPress site?
- WordPress Permalink
- How to replace permalinks
- Multiple Tags Issue in Permalinks
- Auto Changing Text Case
- Is it possible to change the permalink structure without changing the old permalinks to posts and without 301 redirects?
- Adding a ‘blogs’ prefix in the URL structure but only for blogs
- Whole site’s pagination not working after rewriting product permalink
- How to redirect old permalinks to ones generated by [WP-Hashed-ID] plugin?
- How to create a standard WP Page that has the same url as an archive
- One post but two separate permalink structure and template views
- permalinks constantly needs re-saving
- Link to a custom page without a permalink?
- How to change permalink for pages in WordPress?
- Disable “similar permalink” redirect [duplicate]
- Why aren’t my posts being saved or published?
- Retain Post title keywords in URL even if user changes post title or any other way to achieve SEO friendly permalink?
- How to change the URL using rewrite rule in wordpress
- Permalink not working in Apache on Linux
- Permalink problem ( Blog posts vs custom post types)
- Search and replace post URL’s on page output?
- Two urls for one website
- Added incorrect rewrite rule now getting an error
- WordPress Pagination Not Working After Transfer from Localhost
- Accidentally changed the permalink structure
- Keep wordpress from modifying my permalinks
- Permalink Issue – Funny & Weird
- customize urls displayed by previous_post_link and next_post_link
- Pagination is not working, how to trace it properly?
- Routing ‘fake’ sub sub posts
- Files placed in directory with wordpress 404
- wordpress home is gone
- how to make follow?
- how to create several url aliases for a page
- Permalinks Won’t Work
- Post URL not working according to permalink setting