• Resolved Themico

    (@themico)


    Hello,

    when I create a company via the front-end submit a company form and upload a logo for it, it doesn’t appear as a post thumbnail in the backend. Why is that?

    And when I upload a company logo in the edit company post of a WP dashboard, then it works.

    I also added an additional field for the company the submit form (to have a company gallery), and while the field is presented in the form, accept and save images, they do not appear as a new media in WP dashboard and as media attached to the company post. I don’t even know how to query them on the company page.

    Am I missing something here?

    Thank you for the wonderful plugin and for your time!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Themico

    (@themico)

    In other words, all media uploaded in the submit a company form does not then become a thumbnail and media attached to the actual company post.

    Plugin Contributor Kader Ibrahim S

    (@ibndawood)

    Hello there,

    Thank you for trying our plugin and reaching us.

    Please note there are 2 company fields and they are the default Company field that is generated by WP Job Manager plugin. The frontend usually fills this field. The other company field is provided by our plugin. It is a custom post type and is provided as a dropdown. Please make sure that in the Company edit screen in frontend, you are able to provide this as a dropdown. The thumbnail is provided by our plugin and only if this related post type is called the post thumbnail is displayed.

    Can you please clarify what is the theme that you are using? I’ll try to run some tests with the theme and get back to you with what is missing.

    Kindest Regards,
    Ibrahim

    Thread Starter Themico

    (@themico)

    Let’s only discuss the submit a company form by MAS Companies plugin. There is only one media field in the form – for the company logo. The problem is, the uploaded logo does not become a company post thumbnail.

    I use Jobify and Jobseek themes. I can assure you that there is no custom code involved in your plugin work.

    Another problem is if I extend the submit a company form with an additional field to upload more images, those images also do not become new media fields that are seen in the WP media section.

    Thread Starter Themico

    (@themico)

    This is what I mean:

    https://ibb.co/BP56nLZ
    https://ibb.co/pWpdpjK
    https://ibb.co/prrCBvd

    logo image in the front end form must be directly connected with the post thumbnail, but it’s not?

    Plugin Contributor Kader Ibrahim S

    (@ibndawood)

    Hello again,

    Thank you for getting back. The company logo is displayed as part of mas_wpjmc_single_company_header function. Please make sure this function is being called in the template that is being used by your theme.

    If this function is called then the logo will be displayed. Hope this helps. Let us know if you have any other questions or need further help.

    Thanks,
    Ibrahim

    Thread Starter Themico

    (@themico)

    I found a solution to my question. Images uploaded in the submit company form are saved as custom fields, no new media created. I think this is something that needs to be improved.

    So, if you would like to add a new upload field in the submit company form:

    add_filter( 'submit_company_form_fields', 'more_company_fields', 100 );
    
    function more_company_fields( $fields ) {
    $fields['company_fields']['gallery'] = array(
    ...
    );
    return $fields;
    }

    Be sure then to request images like this:

    get_post_meta( get_the_ID(), '_gallery', true );

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Questions about images/media’ is closed to new replies.