Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter JS

    (@jsbls)

    Who knows, I’ll keep looking to see if I find anything. Thanks for the plugin! 🙂

    Thread Starter JS

    (@jsbls)

    Hey! Thanks for your response. Nope, actually if I enqueue it with another handle it does appear separately, which means if I use the same handle it is indeed already being loaded, it just doesn’t work for some reason… I tried to see if I had duplicate copies of jQuery or something but everything appears to be normal. I’ll keep looking at it to see if there is a problem with my theme or a plugin. 🙂

    Thread Starter JS

    (@jsbls)

    Cool! 🙂

    Thread Starter JS

    (@jsbls)

    I also just found this one on the Manage Stores tab:

    Notice: Indirect modification of overloaded property WPSL_Store_Overview::$_args has no effect in {…}/wp-content/plugins/wp-store-locator/admin/class-store-overview.php on line 393

    Thread Starter JS

    (@jsbls)

    Well the duplicate entries magically disappeared when I uploaded the site to my testing server. Weird. The php error I get is

    Notice: Undefined index: page in […]/wp-content/plugins/wp-store-locator/admin/class-admin.php on line 637

    I have debug mode activated.

    Thanks for the quick response by the way! Great plugin.

    Thread Starter JS

    (@jsbls)

    Ok, I can work with that. Thank you very much!

    Here is the code I used to add an image to each listing if it’s any help for anybody. Add to your theme’s functions.php file.

    /* Add image to listing */
    add_filter( 'submit_job_form_fields', 'frontend_add_featured_image' );
    function frontend_add_featured_image( $fields ) {
        $fields['job']['job_image'] = array(
            'label'       => __( 'Image', 'job_manager' ),
            'type'        => 'file',
            'required'    => true,
            'placeholder' => '',
            'priority'    => 7
        );
        return $fields;
    }
    
    /* Save input */
    add_action( 'job_manager_update_job_data', 'frontend_add_featured_image_save', 10, 2 );
    function frontend_add_featured_image_save( $job_id, $values ) {
        update_post_meta( $job_id, '_job_image', $values['job']['job_image'] );
    }
    
    /* Add Custom Field to WP Admin Section */
    add_filter( 'job_manager_job_listing_data_fields', 'admin_add_job_image_field' );
    function admin_add_job_image_field( $fields ) {
        $fields['_job_image'] = array(
            'label'       => __( 'Image', 'job_manager' ),
            'type'        => 'file',
            'placeholder' => '',
            'description' => ''
        );
        return $fields;
    }

    And then just add this wherever you want to display the image:

    <img src="<?php echo $post->_job_image; ?>" alt="">

    Thread Starter JS

    (@jsbls)

    No… since I’d like for the organizations using the service to upload their logo. I succesfully added another field and displayed it by adding another custom file field. My question now is if there is any way to limit the size or dimensions of the uploaded image (just like wordpress image upload does).

    Great plugin by the way!

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