Hi @mungbean
I hope you are doing good today.
When you enable tags in postdata field it allows only to add tag as select or tags as checkboxes (you can switch that in the Settings tab of postdata field). It does not allow to end users to type tags manually. With that, there is no way to have duplicates as the end user will be able to select only 1 time specific tag.
As for limits, I asked our SLS Team to see if this will be possible via some snippet. We will post an update here as soon as more information is available.
Kind Regards,
Kris
Hi again @mungbean
This snippet should help. 152, 86 are the tag IDs. You can add more tag IDs(comma-separated) to display on the postdata form.
add_filter( 'forminator_field_postdata_post_tag_list', function( $tags ){
$only_tag_ids = [
152,
86
];
foreach( $tags as $id => $cat ){
if( ! in_array( $cat->term_id, $only_tag_ids ) ){
unset( $tags[ $id ] );
}
}
return $tags;
} );
You can add the above snippet as a mu-plugins. Please check this link on how to implement the above code as a mu-plugins:
Must Use Plugins
Kris
Hello @mungbean ,
We haven’t heard from you for over a week now, so it looks like you don’t need our assistance anymore.
Feel free to re-open this ticket if needed.
Kind regards
Kasia
Thanks, Kasia. I will look into this and mu-plugin.
Are there plans to implement the tag limit into the plugin?
Hi @mungbean
I hope you are doing well.
I can see we do have plans to extend the post field but we don’t have an estimated time for it.
You can subscribe to our roadmap at: https://wpmudev.com/roadmap/#forminator
Best Regards
Patrick Freitas