Limiting users to one instance of a given post type

[ad_1]

Dear WordPress gods,

I come to you in a time of need.

I recently started developping a plugin for WordPress. With that plugins, users should be able to create one and only one “community”. Each “community” will be linked to zero to many “events” and other diverce pieces of content. The “community” should be editable only by its author and the linked content should be editable/deletable by the author and the author of the “community” linked to it.

My initial plans was to create a custom post type for “community” and another for each other piece of content, linking them all together using metaboxes. But it doesn’t seem right.

Should I continue that way? Should I use custom tables instead? Do you have any piece of advice at all? I would be able to create thate using Laravel, Next.js or Django but I can’t seem to grasp the concepts of WordPress.

Thank you very much for your time.

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer