Title: tag structure
Last modified: April 3, 2024

---

# tag structure

 *  Resolved [snoop23](https://wordpress.org/support/users/snoop23/)
 * (@snoop23)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/tag-structure/)
 * Cool plugin. Thanks for making it.
 * Can we get an option please to change the structure of the taxonomies?
 * The on-page result for tags just reads “posts tagged X”, but it’d be cool if 
   we could add a prefix and suffix (similar to the related block theme option).
 * Example: cute cat pics, with “cat” being the tag.
 * Also, “posts tagged” only applies to English speaking blogs/sites.
 * Thanks for looking into it.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Phi Phan](https://wordpress.org/support/users/mr2p/)
 * (@mr2p)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/tag-structure/#post-17548273)
 * Hello [@snoop23](https://wordpress.org/support/users/snoop23/),
 * Thank you for your feedback. Currently, there is no easy and fast way to add 
   prefix and suffix to the breadcrumbs. However you can customize the breadcrumbs
   by the the hook: `breadcrumb_block_get_items` . For example, if you want to display
   a custom label for the `cat` tag you could do as follows:
 *     ```wp-block-code
       add_filter(
       	'breadcrumb_block_get_items',
       	function ( $items, $breadcrumb ) {
       		// Harded-code tag_id here.
       		$tag_id = 25;
       		if ( is_tag( $tag_id ) ) {
       			// Remove the last item.
       			array_pop( $items );
   
       			// Add custom value.
       			$items[] = [ wp_strip_all_tags( sprintf( __( 'Cute &ldquo;%s&rdquo; pics', 'breadcrumb-block' ), single_tag_title( '', false ) ) ), get_tag_link( $tag_id ) ];
       		}
   
       		return $items;
       	},
       	10,
       	2
       );
       ```
   
 * Best regards,
 * Phi.
 *  Thread Starter [snoop23](https://wordpress.org/support/users/snoop23/)
 * (@snoop23)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/tag-structure/#post-17548310)
 * Hey!
 * Thanks for the quick response. Much appreciated.
 * I’m no coder, but will give this a shot nonetheless.
 * Keep up the great work!
 *  Plugin Author [Phi Phan](https://wordpress.org/support/users/mr2p/)
 * (@mr2p)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/tag-structure/#post-17548322)
 * You’re welcome! Feel free to ask if you have any questions or run into any issues.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘tag structure’ is closed to new replies.

 * ![](https://ps.w.org/breadcrumb-block/assets/icon.svg?rev=2802777)
 * [Breadcrumb Block](https://wordpress.org/plugins/breadcrumb-block/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/breadcrumb-block/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/breadcrumb-block/)
 * [Active Topics](https://wordpress.org/support/plugin/breadcrumb-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/breadcrumb-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/breadcrumb-block/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Phi Phan](https://wordpress.org/support/users/mr2p/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/tag-structure/#post-17548322)
 * Status: resolved