
By default WordPress does not allow you to limit how many taxonomy terms can be attached to a post.
Enabling this plugin allows the use of the “limit” attribute when initially calling register_taxonomy().
If the limit is set to 1 then only one term can be added to the post. If the limit is greater than one then that many
terms may be added to the post. If the limit is attribute is not set, or it’s set to -1 this plugin has no effect.
Example code showing the use of the limit attribute:
register_taxonomy('artists', 'art_work', [ 'label' => 'Artists', 'show_ui' => true, 'limit' => 1, ]); This example shows the use of a custom taxonomy called “artists” and the post type is “art_work”.
Here is another example but this time it’s editing the previously registered taxonomy “post_tag”:
// First load the taxonomy $taxonomy = get_taxonomy('post_tag'); // Edit it to only allow 2 tags to be added per post $taxonomy->limit = 2; // Re-save it with our updated settings (note casting the object to an array before saving) register_taxonomy('post_tag', 'post', (array)$taxonomy); Starting from $0 per month.
Rating
Reviewers
1 reviews
Tags
Developed By
dahousecatz
Quick & Easy
Common Ninja has a large selection of powerful Wordpress plugins that are easy to use, fully customizable, mobile-friendly and rich with features — so be sure to check them out!
Testimonial plugins for Wordpress
Galleries plugins for Wordpress
SEO plugins for Wordpress
Contact Form plugins for Wordpress
Forms plugins for Wordpress
Social Feeds plugins for Wordpress
Social Sharing plugins for Wordpress
Events Calendar plugins for Wordpress
Sliders plugins for Wordpress
Analytics plugins for Wordpress
Reviews plugins for Wordpress
Comments plugins for Wordpress
Portfolio plugins for Wordpress
Maps plugins for Wordpress
Security plugins for Wordpress
Translation plugins for Wordpress
Ads plugins for Wordpress
Video Player plugins for Wordpress
Music Player plugins for Wordpress
Backup plugins for Wordpress
Privacy plugins for Wordpress
Optimize plugins for Wordpress
Chat plugins for Wordpress
Countdown plugins for Wordpress
Email Marketing plugins for Wordpress
Tabs plugins for Wordpress
Membership plugins for Wordpress
popup plugins for Wordpress
SiteMap plugins for Wordpress
Payment plugins for Wordpress
Coming Soon plugins for Wordpress
Ecommerce plugins for Wordpress
Customer Support plugins for Wordpress
Inventory plugins for Wordpress
Video Player plugins for Wordpress
Testimonials plugins for Wordpress
Tabs plugins for Wordpress
Social Sharing plugins for Wordpress
Social Feeds plugins for Wordpress
Slider plugins for Wordpress
Reviews plugins for Wordpress
Portfolio plugins for Wordpress
Membership plugins for Wordpress
Forms plugins for Wordpress
Events Calendar plugins for Wordpress
Contact plugins for Wordpress
Comments plugins for Wordpress
Analytics plugins for Wordpress
Common Ninja Apps
Browse our extensive collection of compatible plugins, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.
Use an age verification popup to validate visitor age, meet regulatory requirements, and ensure only eligible users access restricted content.
Add a Pomodoro timer to your site so users can structure focus and break cycles, improving time management and productivity.
Create interactive polls with a poll widget that gathers real-time feedback, boosts engagement, and helps you understand visitor opinions quickly and clearly.
Show progress clearly with animated progress bars that visualize goals, highlight achievements, and keep visitors engaged and motivated.
Add a no-code music player to your site to stream audio, share playlists, and support multiple formats with easy setup.
Show Airbnb reviews to build trust, improve credibility, and help visitors make confident booking decisions that support higher property sales.
Use tilted image effects to rotate visuals, add creative style, and keep visitors engaged with dynamic images on your site.
Add interactive video overlays with links, product cards, and buttons that appear on top of your videos to boost engagement and guide user actions.
Show your team with interactive team member flip cards that build trust, support transparency, and help visitors connect with the people behind your brand.
Show Instagram posts in a live feed that keeps content fresh, builds social proof, and helps visitors engage with your brand.
Use product blobs to highlight key items, draw attention to featured products, and guide visitors toward faster and more confident purchase decisions.
Showcase clips with a video slider that plays videos from multiple sources in a smooth slideshow, improving design and keeping visitors engaged.
More plugins
The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!
