• Documentation
  • Support / Community
  • Products
    • Piklist Framework
    • Toolbox
    • Fields and Forms
    • WordPress Helpers
  • Log In
Piklist

Access your account, and post on the Support Forums

Retrieve Password | Register for account

Topic: Image File fields for User profile

Support Home » Topics » Piklist » Image File fields for User profile

Tagged: image fields, user profile

  • This topic has 2 replies, 2 voices, and was last updated 7 years, 8 months ago by norboo.
Viewing 2 reply threads
  • Author
    Posts
    • May 29, 2014 at 11:31 pm #1771
      norboo
      Member

      I created two custom fields for the User Profile using the following code:

      
      piklist('field', array(
          'type' => 'file'
          ,'field' => 'company_logo'
      	,'scope' => 'user_meta'
          ,'label' => __('Company Logo')
          ,'description' => __('Upload an Image for your company logo')
      ));
      
      piklist('field', array(
          'type' => 'file'
          ,'field' => 'company_banner'
      	,'scope' => 'user_meta'
          ,'label' => __('Company Banner')
          ,'description' => __('Upload an Image for your company banner')
      ));
      

      Everything works almost perfect, the only problem being that both images show up in the first and not separated.

      What’s the best way to add two separated image fields?

    • May 30, 2014 at 1:55 pm #1776
      Steve
      Keymaster

      There is a known bug for duplicate upload fields in the same meta box. Try placing them in separate boxes.

    • June 2, 2014 at 5:41 am #1781
      norboo
      Member

      Sorry, I didn’t see that somebody else asked a similar question just a while ago.

      Placing them in separate boxes still didn’t work for me. Maybe my situation is a bit more complex because I want to use both images inside a Workflow Tab on User profile. I added each image in a different Tab and now it works even though it’s not ideal solution. I’d still prefer to have both images in the same Tab.

  • Author
    Posts
Viewing 2 reply threads
  • You must be logged in to reply to this topic.
Log In

Log in / Register

Register for an Account

Stay up-to-date with Piklist

About

  • Philosophy
  • Privacy Policy
  • Terms of Service
  • Contact Us
  • Register for an account

Resources

  • Community Forums
  • Documentation
  • Tutorials
  • Get involved

Follow Piklist

  • Like us on Facebook
  • Follow us on Twitter
  • Connect on Google +
  • Watch on YouTube

Rate Piklist


If you love Piklist leave us a 5 Star review on WordPress.org.

News

  • Piklist v0.9.9.8 is now available

    September 30, 2019

    In October of 2015, we released v0.9.9 of Piklist. Your help in testing lead to seven(7) m ...

  • Piklist is now on HackerOne

    September 30, 2019

    We built Piklist from the ground up with security as our top priority. While we’ve t ...

  • Read all News
  • Powered by Piklist & WordPress © 2009 – 2022 Piklist LLC.
    This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to the use of cookies. Find out more.