Sunday, June 5, 2022
HomeWordPress Developmentcustomized publish sorts - Select and assign questions (CPT) to quizes

customized publish sorts – Select and assign questions (CPT) to quizes


I’ve created a particular kind of publish (which can also be a woo product), named Quizes (post_type => quiz). I even have one other CPT, named Questions (post_type => query), which shops a mess of questions and their a number of alternative solutions (the latter as their postmeta). As you possibly can guess, the connection between these two will likely be many-to-many, which means that every quiz could have many questions, and every query might be assigned to many quizes…

Anyway, what I need is an thought of how to decide on questions that might be assigned to every quiz. I am on the lookout for a technique as sensible as potential, and as near a inventory performance as potential…

By sensible I’ve classes task in my thoughts, the place it’s a must to examine those your publish belongs to, however when the classes are fairly many (the questions will likely be MANY additionally), it isn’t so sensible to decide on amongst them in that small metabox on the suitable column of an edit web page…

Additionally, I need the entire interface to be as inventory trying as potential, in order that I can re-use inventory code as an alternative of getting to load exterior useful resource information… I.e, my thoughts went to the interface (I am undecided if it has a reputation) the place you have got an inventory of potential choices on a left column, and also you drag’n’drop the specified ones to the suitable half column. This could be probably the most sensible I can consider, however it’d require a variety of work to be executed, and a variety of jQuery libraries to be loaded…

So I am open to solutions and concepts folks. Thanks upfront! 🙂

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments