Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Custom fields not shown

$
0
0

Replies: 0

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://’, ‘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


Viewing all articles
Browse latest Browse all 59525

Trending Articles