Make labels relationable to wordpress posts or taxonomy.
So I have a website with a lot of information about countries etc. I would like to have people group their topics based on those countries.
It would be awesome if instead of adding manual labels, you could do a lookup on a custom taxonomy or cpt and automatically add or remove labels based on the posts that are in the custom post type or taxonomy.
That way you might also be able to create query the other way around, showing topics about said country on the country page. This would allow tieing in the community into the whole website much more.
We don't use any WordPress Tables for storing and creating relationships. All the data is stored in custom tables and it's super well designed to maximize the speed and performance. So using WordPress's taxonomy system will compromise that.
Shahjahan Jewel, I understand that. But there should be something possible since Metabox (with custom tables!) is able to pull of the same kind of thing.
It's only a lookup sort to say to mirror those options. Not to save the post to the taxonomies or. Wp post table.
Wilco W, You can programmatically add or remove topics for a space or a specific user.
Shahjahan Jewel I'm not sure if I'm explaining myself well. But what I'm looking for is only to "auto add labels" to choose from, based on a cpt or taxonomy. That shouldnt compromise on speed.
So for example the taxonomy has England, Netherlands, Germany.
Then the labels you can choose to add your topic to will also be England, Netherlands, Germany.
That is really just a basic relational database. Your not saving the posts into the taxonomy or anything like that.
So basically you want to add topics automatically to a post? In that case, we have an action hook after a post is created. Then you can attach those topics programmatically.
Shahjahan Jewel, yes. That is it pretty much.
And that might aswell work backwards. Not sure, but that way you would be able to show the related topics to England on the England page. (just a title + link).
Probally won't be wp_query-able. But with some custom code should be feasible to built.
I will built a little mockup tomorrow visually. To make it a bit more clear. Since it's a two fold request. And might also lay the ground works for this request:
https://community.wpmanageninja.com/portal/space/community-meta/post/is-this-possible-link-wo