Is there a filter hook that I can use to change how taxonomy term names are displayed?

The dynamic filter “term_{$field}” is probably what you’re looking for, where the field is “name.” One approach is to have an array of names and their pseudonyms, then do a check-and-return on them so they’ll display the replacement. add_filter( ‘term_name’, function( $value ) { $terms = [ ‘old’ => ‘new’, ]; // basic example check, … Read more

PHP Customization: Taxonomies and Queries, why? [closed]

Before you start theme development, I suggest you familiarize yourself with general WordPress Usage & Terminologies. Taxonomy: In general taxonomy means classification. In WordPress, posts, pages, custom post types etc. can be further classified by using different taxonomies. For example, you may have hundreds of blog posts. Now how do you classify them for better … Read more

functions to create term and child terms

To create a taxonomy, you should use register_taxonomy(). This function accepts three arguments: <?php register_taxonomy( $taxonomy, $object_type, $args ); ?> The documents on the codex are plenty self explanatory. Now, to insert a term into a taxonomy, you can use wp_insert_term(). Again this function accepts 3 arguments: <?php wp_insert_term( $term, $taxonomy, $args = array() ); … Read more

Is It Possible To Have Shared WordPress Custom Post Types?

I have partly solved my own question so-to-speak. I’ve been trying to get post type relationships working for ages and the plugin relation post types as mentioned in my comment to Christopher’s answer. It is far from perfect, but I worked out how to get this plugin: http://wordpress.org/extend/plugins/relation-post-types/ – working (albeit not that pretty). The … Read more

Custom taxonomy admin page

Not sure why I didn’t think of this earlier. I suppose I was hoping for a way to ‘hijack’ the default page to display something else… Anyway following my original method: If you want a custom admin page for a taxonomy, you can set ‘show_ui’ => false when you register it to suppress the default … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)