Title: Custom fields not shown
Last modified: May 8, 2018

---

# Custom fields not shown

 *  Resolved [austriadesign](https://wordpress.org/support/users/austriadesign/)
 * (@austriadesign)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/custom-fields-not-shown/)
 * Hi there,
 * I don’t know why but custom fields are not shown anymore in frontend. In backend
   everything seems fine.
 * This is what I added to /wp-content/plugins/awesome-support-custom-fields.php:
 * // If this file is called directly, abort.
    if ( ! defined( ‘WPINC’ ) ) { die;}
 * add_action( ‘plugins_loaded’, ‘wpas_user_custom_fields’ );
    /** * Register all
   custom fields after the plugin is safely loaded. */ function wpas_user_custom_fields(){/*
   You can start adding your custom fields safely after this line */
 * if ( function_exists( ‘wpas_add_custom_taxonomy’ ) ) {
    wpas_add_custom_taxonomy(‘
   errorhandler’, array( ‘title’ => ‘Kategorie’, ‘label’ => ‘Auftrag’, ‘label_plural’
   => ‘Kategorie’, ‘order’ => ‘3’ ) ); } if ( function_exists( ‘wpas_add_custom_field’)){
   wpas_add_custom_field( ‘website’, array( ‘title’ => ‘Domain’, ‘label’ => ‘Website-
   URL*’, ‘label_plural’ => ‘Website’, ‘field_type’ => ‘url’, ‘placeholder’ => ‘
   [https://&#8217](https://&#8217);, ‘order’ => ‘1’, ‘required’ => true ) ); } 
   if ( function_exists( ‘wpas_add_custom_field’ ) ) { wpas_add_custom_field( ‘ip_adress’,
   array( ‘title’ => ‘IP-Adresse’, ‘label’ => ‘IP-Adresse’, ‘label_plural’ => ‘IP-
   Adresse’, ‘field_type’ => ‘text’, ‘placeholder’ => ‘www.wieistmeineip.at’, ‘order’
   => ‘2’ ) ); }
 * /* Do NOT write anything after this line */
    }
 * Can’t find errors 🙁
 * Please help me
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcustom-fields-not-shown%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [zanyojimbo](https://wordpress.org/support/users/zanyojimbo/)
 * (@zanyojimbo)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/custom-fields-not-shown/#post-10263466)
 * Hi, I am experiencing the same issue, as mentioned in another post – even the
   basic AWSP example of custom fields does not seem to work… anyone with a solution?
 * My issue is also that I’d like to use specific session data (e.g., user info)
   and I would like to know which is the best hook for that, as plugins_loaded cannot
   see the user
 * Thanks a lot
 *  Plugin Author [awesomesupport](https://wordpress.org/support/users/awesomesupport/)
 * (@awesomesupport)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/custom-fields-not-shown/#post-10272100)
 * [@austriadesign](https://wordpress.org/support/users/austriadesign/) – I tested
   the two custom fields that were created with the wpas_add_custom_field function
   and that seem to work for me. The hook used is still plugins_loaded.
 * So, as far as I can tell, the code seems fine.
 * Maybe, just for a test, remove the _if ( function\_exists(_ conditional and see
   if that helps.
 * Thanks.
 *  Plugin Author [awesomesupport](https://wordpress.org/support/users/awesomesupport/)
 * (@awesomesupport)
 * [8 years ago](https://wordpress.org/support/topic/custom-fields-not-shown/#post-10299547)
 * Hello:
 * Since we have not heard back from you on this issue we’ll assume its been resolved.
 * Thanks for using Awesome Support!
 *  [zanyojimbo](https://wordpress.org/support/users/zanyojimbo/)
 * (@zanyojimbo)
 * [8 years ago](https://wordpress.org/support/topic/custom-fields-not-shown/#post-10327575)
 * Hi, I solved my problems hooking the function to ‘after_setup_theme’ instead 
   of ‘plugins_loaded’ – this probably depends on the theme you are using. Hope 
   this helps!

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

The topic ‘Custom fields not shown’ is closed to new replies.

 * ![](https://ps.w.org/awesome-support/assets/icon-256x256.png?rev=1849681)
 * [Awesome Support - WordPress HelpDesk & Support Plugin](https://wordpress.org/plugins/awesome-support/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/awesome-support/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/awesome-support/)
 * [Active Topics](https://wordpress.org/support/plugin/awesome-support/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/awesome-support/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/awesome-support/reviews/)

## Tags

 * [custom fields](https://wordpress.org/support/topic-tag/custom-fields/)

 * 4 replies
 * 3 participants
 * Last reply from: [zanyojimbo](https://wordpress.org/support/users/zanyojimbo/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/custom-fields-not-shown/#post-10327575)
 * Status: resolved