Comments are bound to post IDs. So you need a post ID for each user.
Register a custom post type, make it not public and create one hidden post for each user. Store the ID in an user-meta field.
Now assign the comments to that post’s ID. Do not use comments_template()
. That’s an ugly monster, dealing with globals and way too complex to hack around. Fetch the comments with get_comments()
instead.
The print the comment form, add a hidden field for author archive URL, hook into comment_post_redirect
and send the commenter back correctly.
Related Posts:
- One-to-many post relationships that are displayed by category (using posts-to-posts plugin)
- custom comments form for custom post type
- Custom post type’s posts are not showing anywere but in xml sitemap
- Methods for development wordpress themes [closed]
- Custom post type that lets users create a set of posts?
- Loop carousel slider in wordpress
- Retrieve a post with its ACF repeater fields in wordpress
- Custom post type – order field
- Change capability type of post type registered by plugin
- List all posts commented by current user
- How to set a fall back template for a custom post type in a plugin?
- How to add multiple images to a custom post type single post?
- Custom Comment Types
- Include images from pages in wp search.php results in default wp search
- Separating Search Results By Post Type
- List events by month
- Date query for a custom meta field
- Custom Search form not working in localhost
- Change plugin’s has_archive = true to false?
- Change upload_dir folder at a certain cpt but cant change back
- Multiple Content Block
- Best practice for adding posts in bulk
- How do I create an archive page for standard posts?
- Is it possible to associate different kinds of custom post types one to the other?
- Custom Post Type loops and Disqus
- Limit users by custom taxonomy and user roles
- How to have the right design for a custom post type without accessing themes
- Remove parent from custom post type
- How to add the post ID (or any other post data) to a Contact Form 7 mail?
- How to add extra input fields to CPT’s comment form?
- how to add extra meta box or textarea into custom post types
- How to Get Current Custom Post Type Selected Taxonomy Term (Not All Terms)
- check if post title in a custom post type exists in page
- How does WP handle multiple matching rewrite rules?
- Should I use custom menu, C.P.T. or theme options, or something else for this?
- How to retain $_POST data when submitting form to custom page
- Why get_posts() not returning only selected category posts from Custom Post Type?
- get_comments not working on custom post types
- Allow non-logged in users to see a future post after clicking on a list of future posts
- Query & Order posts by custom fields
- custom taxonamy and post type
- How to Upload CSV Data into Custom Post Type Data with Metabox programmatically
- Custom Post Type + Categories
- How can the recipients and content for comment email notifications on a custom post type be changed?
- Make a custom_post translatable
- Adding custom image sizes and post types to a plugin or to a theme?
- What functions does WordPress use for filtering / sanitizing comments?
- Show all tags on custom post type
- How to hook WP initialization without modifying functions.php
- ACF in wordpress
- get comments by current user inside page template
- Pods CMS: How to add custom column to Adnvanced Content Type
- Api rest_route 404 while building filter for custom posts (filtered by multiple meta keys / custom fields)
- how to get this tax_query working?
- Unable to format dates to put in event calendar
- How to Use Custom Meta Field Instead of CPT Title in Post URL
- Filter content in shortcode
- Allow anonymous comments just in a custom post type
- Assign a template to a custom post type when displayed by the main loop on the home page
- If Post type use sidebar (‘tree’)
- Custom post type in Custom widget – $listItem
- Having Issue on Getting Metabox Checkbox Value
- Custom Plugin – Query CPT – Display Results
- Custom post type archive – error in nav-menu-template.php
- Make Next and Previous on single-$posttype.php use the same order as archive-$posttype.php
- Front end create custom post types
- How can I make reusable post types with complex custom field structures?
- How to change the comments form title based on post type
- How to search through all child taxonomies using WP_Query?
- How to use posts as tabs in a custom page?
- Disqus comment system not show
- Problem with multi checkboxes value in metabox?
- Custom Post Type Front Page Gives 404
- Custom Post Type single post type shown in theme single.php
- Default custom post type url
- Run query on specific admin options page and send results to select field in another function
- Why get_posts() returns empty array while I am trying to get posts from some specific taxonomies and work properly with others?
- Populate metabox dropdown with post title from another Custom Post Type (issues with wp_reset / global $post)
- Best Plugins for Complex Index of Resources [closed]
- How to display all custom fields associated with a post type – IN THE ADMIN AREA?
- Display subcategories in the filter on CPT
- Understanding the workflow of form creation plugin
- Use Custom Post Type as Storage Container Without Registering It
- next/prev post link by relationship post 2 post
- Custom post type updated to support comments, yet comments don’t appear
- How to Display CPT Posts on index Page
- Query custom post type and showing its content
- Issue on Counting CPT’s Under Taxonomy Term
- Function that get ACF fields value before saving
- Add Excerpt On Quicksand Plugin
- Custom Post Types in plugins?
- Plugins for putting Custom Post Types into the Menu
- Create custom post order (with custom post type meta)
- Change position of Post Formats box?
- Plugin – read post into blank page [duplicate]
- Single page for Custom Post Type not found
- How to hide home title on pages and posts?
- WP_Query is getting the post but the_post() not rendering any Post
- Custom Post Type to Plugin
- Woocommerce product page is not showing custom css [closed]