Titan-Framework icon indicating copy to clipboard operation
Titan-Framework copied to clipboard

Feature Request: Taxonomy Meta

Open philipnewcomer opened this issue 11 years ago • 6 comments

I have to say this framework is very compelling... great work! In several of my themes I am using meta fields on categories, using the Tax Meta Class. I'd like to request that Titan framework's meta box functionality be extended to work with taxonomies as well. While WordPress doesn't have native taxonomy meta support, it's certainly possible to do (example 1, example 2), and I would love to have all of my post/taxonomy meta requirements met in one plugin. Thanks for considering!

philipnewcomer avatar Feb 21 '14 02:02 philipnewcomer

Options in taxonomies? That sounds interesting!

I want to get on to this, although I have some planned updates :)

It would be great if you can do a fork and get started with this in the meantime

bfintal avatar Feb 21 '14 12:02 bfintal

I might be able to tackle this, although at my current skill level I think it's a bit over my head, so don't count on seeing anything too great. :) Perhaps somebody else who has the skills would want to take this idea and go with it.

philipnewcomer avatar Feb 21 '14 14:02 philipnewcomer

+1 to this. Categories, tags, custom taxonomies... Possibly links? Menus? WordPress has a wealth of "types" which can have data associated with them. Being able to extend them all w/ arbitrary options would be ridiculously powerful.

DangitRick avatar Feb 22 '14 06:02 DangitRick

I'm not sure about the menus though. Tried that once, WP doesn't have an API for that and the techniques are hackish at best :(

bfintal avatar Feb 22 '14 12:02 bfintal

Wasn't sure about menus either. Honestly not even sure what it'd be used for… but thought I'd include it just to get another perspective on it. :D

DangitRick avatar Feb 23 '14 03:02 DangitRick

The Thesis theme (at least in v. 1.8.5) created an entirely new table to store taxonomic meta options in. It would then do a SELECT * on the table to pull all of the data in, on every page load. On a site with an extensive taxonomy (such as thousands of tags), each with potentially having options set, that's an EXPENSIVE query for every page load.

The best option I've found is to create an option for each taxonomic ID (e.g., titan_tax_##), with that option containing the serialized meta, and with it being set to not autoload, so that it only is pulled when needed on the taxonomy in question.

DangitRick avatar Feb 23 '14 08:02 DangitRick