• I just want to add a field that I would be able to have populate when I do the CSV import. Just a text field. I read the post about the custom field that was for Appointments and added that to make a link to a website, rather than have the name (I am using this plugin for a directory member listing map) be the website link. I have purchased the CSV importer and it works great.

    https://ww.wp.xz.cn/plugins/wp-store-locator/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    Not entirely sure I understand the question.

    If you want to import data to custom fields then just set the CSV header to the name of the custom field. For example ‘appointment_url’. If you don’t do this then you can always change the mapping after uploading the file.

    If you want another custom field, then simply add this to the code that adds the custom meta box, and adjust the rest of the code as described in the article.

    'custom_field' => array(
        'label' => __( 'Custom', 'wpsl' )
    )

    ps, the form here is only for the base plugin. Support for paid add-ons goes through your account page.

    Thread Starter Victoria

    (@vlambert123)

    the problem that I am having is having it show up on the front end. I have this code and am having trouble adding another custom field

    add_filter( 'wpsl_frontend_meta_fields', 'custom_frontend_meta_fields' );
    
    function custom_frontend_meta_fields( $store_fields ) {
    
        $store_fields['wpsl_website_url'] = array(
            'name' => 'website_url',
            'type' => 'url'
    
        );
    
        return $store_fields;
    }
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘text custom field’ is closed to new replies.