This page permanently redirects to gemini://d.moonfire.us/blog/2012/07/09/wordpress-custom-taxonomies/.

WordPress custom taxonomies

=> Up a Level

function sitename_init() { // Register the taxonomies associated with pages. create_taxonomy(“format”, “formats”, “Format”, “Formats”, false); create_taxonomy(“language”, “languages”, “Language”, “Languages”, true); create_taxonomy(“magic”, “magic”, “Magic”, “Magic”, true); // quite a few more taxonomies

// We need pages to have archives so we can use the taxonomies. $page_type = get_post_type_object(“page”); $page_type->has_archive = true; }

Metadata

Categories:

=> Programming

Tags:

=> PHP | taxonomies | WordPress

Footer

Below are various useful links within this site and to related sites (not all have been converted over to Gemini).

=> Now | Contact | Biography | Bibliography | Support

=> Fiction | Fedran | Coding | The Moonfires

=> Categories | Tags

=> Privacy | Colophon | License

=> Mailing List

=> https://d.moonfire.us/blog/2012/07/09/wordpress-custom-taxonomies/

Proxy Information
Original URL
gemini://d.moonfire.us/blog/2012/07/09/wordpress-custom-taxonomies
Status Code
Success (20)
Meta
text/gemini;lang=en-US
Capsule Response Time
933.42873 milliseconds
Gemini-to-HTML Time
1.078751 milliseconds

This content has been proxied by September (ba2dc).