IT Nursery
I have some custom code in order to display my custom fields the way I want. Unfortunately, with this code I can’t seem to access the $field['label']. I tried...
  • May 28, 2022
  • 0 Comments
I have got something like this: $taxonomies = get_object_taxonomies('my_post_type'); foreach($taxonomies as $tax){ $args['labels'] = get_taxonomy_labels( (object) $args ); $args['label'] = $args['labels']->singular_name; echo $args['label']; } which gives me “Tag” each...
  • May 9, 2022
  • 0 Comments
IT Nursery
Currently I’m trying to get the post type labels plural. In detail: $GLOBALS['wp_post_types'][ get_current_screen()->post_type ]->labels->name This is how I’m trying to retrieve it – in the admin UI –...
  • May 1, 2022
  • 0 Comments