Categoría: BRICKS FREE GET_POST_TYPE_OBJECT
-
How to display CPT’s singular_label in Bricks
Looking to get and output a post type’s singular label in Bricks on single CPT pages? Define a custom function by adding the following in your child theme’s functions.php or a code snippets plugin: function bl_get_post_type_singular_label() { $post_type_object = get_post_type_object( get_post_type() ); return $post_type_object->labels->singular_name; } and then replace a Heading/Basic Text element’s default text with:…