Title: xlan's Replies | WordPress.org

---

# xlan

  [  ](https://wordpress.org/support/users/xlan/)

 *   [Profile](https://wordpress.org/support/users/xlan/)
 *   [Topics Started](https://wordpress.org/support/users/xlan/topics/)
 *   [Replies Created](https://wordpress.org/support/users/xlan/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/xlan/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/xlan/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/xlan/engagements/)
 *   [Favorites](https://wordpress.org/support/users/xlan/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Orfeo Pro: Wrong Links on Big Title section](https://wordpress.org/support/topic/orfeo-pro-wrong-links-on-big-title-section/)
 *  [xlan](https://wordpress.org/support/users/xlan/)
 * (@xlan)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/orfeo-pro-wrong-links-on-big-title-section/#post-12878376)
 * Please fix this one. Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AddFunc Head & Footer Code] disable AddFunc Head & Footer Code for custom post types](https://wordpress.org/support/topic/disable-addfunc-head-footer-code-for-custom-post-types/)
 *  Thread Starter [xlan](https://wordpress.org/support/users/xlan/)
 * (@xlan)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/disable-addfunc-head-footer-code-for-custom-post-types/#post-8983272)
 * Another easy solution to avoid having these meta info, is just to check is there
   is actually any code on the AddFunc Head & Footer Code metabox, before saving.
 * So instead of using
 * if( isset( $_POST[‘aFhfc_head_code’] ) )
    update_post_meta( $post_id, ‘aFhfc_head_code’,
   $_POST[‘aFhfc_head_code’] ); if( isset( $_POST[‘aFhfc_footer_code’] ) ) update_post_meta(
   $post_id, ‘aFhfc_footer_code’, $_POST[‘aFhfc_footer_code’] );
 * use this instead
    if( !empty( $_POST[‘aFhfc_head_code’] ) ) update_post_meta(
   $post_id, ‘aFhfc_head_code’, $_POST[‘aFhfc_head_code’] ); if( !empty( $_POST[‘
   aFhfc_footer_code’] ) ) update_post_meta( $post_id, ‘aFhfc_footer_code’, $_POST[‘
   aFhfc_footer_code’] );
 * So if the User never user AddFunc Head & Footer Code for a page or a post, you
   won’t save this meta info for that post, avoiding in this way creating garbage
   data in the postmeta table that it won’t ever be used.
    -  This reply was modified 9 years, 4 months ago by [xlan](https://wordpress.org/support/users/xlan/).
    -  This reply was modified 9 years, 4 months ago by [xlan](https://wordpress.org/support/users/xlan/).

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