Title: Which section do i insert rank math breadcrumb code using wpcode?
Last modified: February 26, 2024

---

# Which section do i insert rank math breadcrumb code using wpcode?

 *  Resolved [fartbrat](https://wordpress.org/support/users/fartbrat/)
 * (@fartbrat)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/which-section-do-i-insert-rank-math-breadcrumb-code-using-wpcode/)
 * Hi, may i know where do i insert the following code using your plugin?
 *     ```wp-block-code
       <?php if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs(); ?>
       ```
   
 * I was told (by rankmath support) that “To show the Rank Math breadcrumbs via 
   PHP, you will need to add it to the `single.php` or `header.php` file of your
   active theme.”
 * I tried to add it in Header in the “Global Header & Footer” section, but i received
   error “special characters must be escaped : [<] and [>]”
 * or should i add it into code snippet, for example php snippet?
 * Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwhich-section-do-i-insert-rank-math-breadcrumb-code-using-wpcode%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * (@gripgrip)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/which-section-do-i-insert-rank-math-breadcrumb-code-using-wpcode/#post-17452353)
 * Hi there,
 * You can create a new snippet in WPCode with the code type set to PHP or Universal
   for that code and then use the Auto-Insert location “Insert Before Post” [https://a.supportally.com/i/G7N57t](https://a.supportally.com/i/G7N57t)
   or whatever location you find fits you site best.

Viewing 1 replies (of 1 total)

The topic ‘Which section do i insert rank math breadcrumb code using wpcode?’ is
closed to new replies.

 * ![](https://ps.w.org/insert-headers-and-footers/assets/icon-256x256.png?rev=2758516)
 * [WPCode - Insert Headers and Footers + Custom Code Snippets - WordPress Code Manager](https://wordpress.org/plugins/insert-headers-and-footers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-headers-and-footers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-headers-and-footers/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-headers-and-footers/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/which-section-do-i-insert-rank-math-breadcrumb-code-using-wpcode/#post-17452353)
 * Status: resolved