WordPress custom taxonomy URL rewrite on spelling errors

It also doesn’t matter which URL part is changed, except the last one. So this still shows the content of the original page. Yes, because your taxonomy’s rewrite is hierarchical with the permalink structure /treatment/<term slug> (e.g. /treatment/psychosomatic) or /treatment/<term slug>/<term slug>/… (if the term is a child term, e.g. /treatment/psychosomatic/psychosomatic-dysfunction), so as long as … Read more

Custom Comment Types

First of all, please don’t confuse terms. Custom Post Types is a mis-named feature that should really be Custom Content Types. They’re pieces of content that aren’t posts or pages, but live in the same kind of database. Like posts and pages, they can have tags, categories, comments, and other custom meta and taxonomies applied. … Read more

How to list all categories and tags in a page?

TERM METADATA It’s possible to get thumbnails for terms using the new Term Metadata in 4.4. You just also need to define those ahead of time yourself. add_term_meta( int $term_id, string $meta_key, mixed $meta_value, bool $unique = false ) get_term_meta( int $term_id, string $key = ”, bool $single = false ) update_term_meta( int $term_id, string … Read more

How to get the singular name of a custom taxonomy?

EDIT Since I missunderstood your question at first, here’s the update that should do what you want. $taxonomies = get_object_taxonomies( ‘my_post_type’, ‘object’ ); foreach($taxonomies as $tax){ echo $tax->labels->singular_name; } Basically, you need to specify to the get_object_taxonomies function that you want an object to be returned. In your function, I’m not sure where the $args … Read more