Title: Add a php code
Last modified: August 21, 2016

---

# Add a php code

 *  Resolved [liton1980](https://wordpress.org/support/users/liton1980/)
 * (@liton1980)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/add-a-php-code/)
 * I am using [WordPress SEO by Yoast](http://wordpress.org/plugins/wordpress-seo/)
   and it allows me to show breadcrumbs in theme, It gave me a php code as below:
 *     ```
       <?php if ( function_exists('yoast_breadcrumb') ) {
       yoast_breadcrumb('<p id="breadcrumbs">','</p>');
       } ?>
       ```
   
 * Now i want to add it above title of posts and tags ( I want to show them on post’s
   pages and tags pages). but i don’t know how and where should i place it. Can 
   you please help me?

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

 *  Theme Author [ronangelo](https://wordpress.org/support/users/ronangelo/)
 * (@ronangelo)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/add-a-php-code/#post-4211790)
 * You need PHP Widget Plugin. This would better than editing the template files.
   See this [http://ronangelo.com/topic/breadcrumbs/](http://ronangelo.com/topic/breadcrumbs/)
 *  Thread Starter [liton1980](https://wordpress.org/support/users/liton1980/)
 * (@liton1980)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/add-a-php-code/#post-4211798)
 * Yes, It works excellent. Thanks a lot.

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

The topic ‘Add a php code’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/frontier/1.3.3/screenshot.png)
 * Frontier
 * [Support Threads](https://wordpress.org/support/theme/frontier/)
 * [Active Topics](https://wordpress.org/support/theme/frontier/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/frontier/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/frontier/reviews/)

## Tags

 * [frontier](https://wordpress.org/support/topic-tag/frontier/)
 * [Yoast](https://wordpress.org/support/topic-tag/yoast/)

 * 2 replies
 * 2 participants
 * Last reply from: [liton1980](https://wordpress.org/support/users/liton1980/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/add-a-php-code/#post-4211798)
 * Status: resolved