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
- Limit users by custom taxonomy and user roles
- Issue to get wp_get_attachment_image with cmb2
- How to have the right design for a custom post type without accessing themes
- Best action hook to create custom post and assign taxonomy terms to it on plugin activation?
- Remove parent from custom post type
- “Allow Comments” box cannot be checked
- Page as a child of a Custom Post Type
- Generate Shortcodes by Taxonomy
- Custom Post Type | Fatal Error on register_post_type()
- Set object terms not working on plugin activation
- How to add the post ID (or any other post data) to a Contact Form 7 mail?
- need advice on how to do a lists using custom post types – taxonomy vs postmeta
- Why is archive.php used for my page
- Separate comment section for post type in dashboard
- How to add extra input fields to CPT’s comment form?
- GravityForm: Populate Dropdown with custom post type [closed]
- how to add extra meta box or textarea into custom post types
- Count all comments of a custom post type
- “add_post_type_support” with Custom Post Type & ACF
- ACF simple text field value not showing
- Shortcode insertion in tab
- How to Get Current Custom Post Type Selected Taxonomy Term (Not All Terms)
- Made Custom Post Types, but single.php not working
- Can’t get order_by meta_value_num to work properly
- How to quickly reorder posts in the admin panel that will persist for the wp-api
- Is it possible to place custom post type files inside a folder in theme directory?
- Add CPT as subpage under custom page
- Displaying a custom post types custom taxonomy value?
- custom comments on specific post type
- WooCommerce product search titles only
- check if post title in a custom post type exists in page
- Insert data on comment post
- 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 hack YARPP plugin to find related posts for custom post type?
- Show listings from Impress Listing plugin in random order using taxonomy and terms
- What’s the difference between same wp functions get_posts(); functions in different form?
- Update menu when saving settings
- custom post type not showing in menu
- Custom posts don’t work
- What template files do I need to customise custom-category-term-links rather than fall back on archive.php?
- How to retain $_POST data when submitting form to custom page
- Why get_posts() not returning only selected category posts from Custom Post Type?
- single-{cpt}.php ignored
- If post has custom field then display css-class
- Adding a custom post type taxonomy template in plugin
- Replace text in post from cvs
- Insert and then update post_type by wp_update_post
- get_comments not working on custom post types
- Custom Post Types. Are there any disadvantages/advantages in using a plugin to develop them?
- add category name to permalinks on product page /category-name/product-name
- How can I make a custom post type sticky?
- Custom Post Type Set Comments ON by default without show METABOX
- Get term name and term parent into custom post type permalink
- Allow non-logged in users to see a future post after clicking on a list of future posts
- Help need making decision. Ads rotating site on wordpress
- All of my custom posttypes are 404’ing
- Query & Order posts by custom fields
- custom taxonamy and post type
- What is the recommended / best way to do this: Event calendar post/type in a block-based theme?
- Return the latest post from a custom Taxonomy and Post Type
- Don’t know how to show custom taxonomies from a custom post_type
- WordPress comments_open for specific user role or post type
- how to add a button next to the wordpress view button?
- Not Able to Get Custom Post Type Gallery Images URL
- JS innerhtml changing style when using AJAX
- Action or Filter Hook for a Custom Importer
- How to set a CPT to have a page as a parent, then rewrite urls accordingly?
- Broken featured images are uploading from frontend
- Addition of custom option panel crashes Media Library & Admin Area
- Display a grid of taxonomy terms at root taxonomy page
- How to Upload CSV Data into Custom Post Type Data with Metabox programmatically
- limit value taxonomy based on previous taxonomy value wordpress
- Dynamic dropdown select values depending on other custom field value
- How to change the post type a theme shows by default?
- Get unique superset of taxonomy terms from a list of custom posts in another hierarchical taxonomy
- Tracking changes in admin-page so user gets warning when leaving the page
- How to change wp prefix for custom post type only?
- Send notifications to custom post author when custom post is edited
- Metabox not show in categories custom post type cmb2
- Add custom field in comments form
- Post injections into Site Origins Page builder [closed]
- Custom Post Type + Categories
- Event Custom Post Type Title show by upcoming Event Dates
- WordPress randomly shows 404 errors
- Create another comment system for CPT
- How to have this permalink structure: post_type/postname/custom_inner_page
- Custom Post Type slug same as page name
- Building a Treatments Page, What Do I Use?
- How to Get WordPress custom post data in WooCommerce product meta panel? [closed]
- Shortcode for CPT post content in a page
- How can the recipients and content for comment email notifications on a custom post type be changed?
- custom post type and non-standard gallery