Use a taxonomy instead of meta for template & template-part #24720
Use a taxonomy instead of meta for template & template-part #24720aristath wants to merge 18 commits intoWordPress:masterfrom
Conversation
|
Terms now get properly created and assigned. |
|
On the PHP front this is OK, now working on the JS front. |
|
If this is using a taxonomy now, can we use the automated handling we'd get for querying and response inclusion by marking it as |
Thank you @TimothyBJacobs! I added |
|
Now that the taxonomy shows in REST, you should be able to query for it automatically using the It should also now be automatically included in the response as the |
|
@TimothyBJacobs If you feel this can be done better then please feel free to push commits here, you are far more familiar with the REST API than I am! |
|
Superseded by #27016 |
As discussed in #24377 and a core editor meeting, we want to move away from using post-meta to store the theme, and start using a taxonomy instead.
This PR adds the taxonomy and changes all related queries to use the new
wp_themetax.