How to stop or bypass "Duplicate Post Error/Warning"?
I'm having issues when I create multiple different posts where FC is giving me a warning message or an error message saying, "No Duplicate Posts please".
The problem is that the "Title" and the "Content" of the posts are not identical. Most of the wording is, but the dates change from post to post (example: 01-23-2026, and 03-12-2026, etc..). And the title of the post will change the words "Session 1" to the next sequence "Session 2", and so on.
I am also using the Oembed feature in the post box to attach a YouTube video to the post, when I get these "Duplicate Posts" error messages.
If I make these posts not using the Oembed feature in the post box, but instead just copy and paste the video URL from my YouTube channel, it will allow the posts to be posted.
I'm not sure why this is happening, but I need a way to tell FC to allow duplicate posts, especially when the wording in the post title and post content and the Oembed video URL change and are clearly NOT the same.
Seems like a switch for: Check For Duplicate Posts: Yes/No in settings should be standard.
I dont want some unknown conditions checking something i need to be in control of.... why does Fluent take coontrol of a user function in the 1st place?
Mark Whitby,Β thank you for the suggestion. I will address this matter with our team.
Ref: https://community.wpmanageninja.com/portal/post/allowing-duplicate-posts?comment_id=35613
Update: Filter hooks have been provided in v2.4.0; now you can use the hooks to disable duplicate posts, as well as comments.
Use cases:
Posts
-
Add to any active snippet plugin or theme'sΒ
functions.php:add_filter('fluent_community/disable_duplicate_post_check', '__return_true');Try submitting the same post twice β should succeed without a "duplicate post" error β
Remove the filter β duplicate block should return β -
Conditional (specific space):
add_filter('fluent_community/disable_duplicate_post_check', function($skip, $userId, $spaceId) { return $spaceId === 42; }, 10, 3);Posts in space 42 bypass the check; all other spaces still block duplicates β
-
Conditional (multiple spaces):
$allowed_space_ids = [42, 55, 78]; add_filter('fluent_community/disable_duplicate_post_check', function($skip, $userId, $spaceId) use ($allowed_space_ids) { return in_array($spaceId, $allowed_space_ids); }, 10, 3);Posts in spaces 42, 55, 78 bypass the check; all other spaces still block duplicates β
-
Conditional (specific user):
add_filter('fluent_community/disable_duplicate_post_check', function($skip, $userId, $spaceId) { return $userId === 5; }, 10, 3);User 5 can post duplicates freely; all other users are still blocked.
Comments
-
Add toΒ
functions.php:add_filter('fluent_community/disable_duplicate_comment_check', '__return_true');Try submitting the same comment twice on a post β should succeed β
Remove the filter β duplicate block should return β -
Conditional (specific post):
add_filter('fluent_community/disable_duplicate_comment_check', function($skip, $userId, $postId) { return $postId === 99; }, 10, 3);Duplicate comments on post 99 allowed; all other posts still blocked
duplicates β -
Conditional (multiple posts):
$allowed_post_ids = [99, 120, 150]; add_filter('fluent_community/disable_duplicate_comment_check', function($skip, $userId, $postId) use ($allowed_post_ids) { return in_array($postId, $allowed_post_ids); }, 10, 3);Duplicate comments are allowed on any of those post IDs; all others are still blocked β
Tawsif Ahmed RiyadΒ Thanks for these code snippets. I've installed the first on from each list and they work nicely!
Tawsif Ahmed RiyadΒ It seems that it doesn't work any more with the latest version. Any other fix?