💾 Archived View for d.moonfire.us › blog › 2012 › 07 › 09 › wordpress-custom-taxonomies captured on 2022-04-28 at 18:34:21. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-01-08)
➡️ Next capture (2023-01-29)
-=-=-=-=-=-=-
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; }
Categories:
Tags:
Below are various useful links within this site and to related sites (not all have been converted over to Gemini).
https://d.moonfire.us/blog/2012/07/09/wordpress-custom-taxonomies/