PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Updating Post's Featured Image (Front-end editing of custom post type)

  1. I'm attempting to create a Graduates directory for a yoga college with Gravity Forms that essentially creates a "Graduates" custom post type (a personal profile essentially). This is behind a membership wall and embedded within a normal wordpress page. I have been able to get everything working for reading values from the database so that they can update their profile whenever they want. I have even got their "updates" to update their respective Graduates custom post type. The only issue I can't seem to get sorted is updating the "featured image" (serving as their profile image). It will upload properly the first time using the Featured Image post field, but I can't seem to find a way to update their profile image.

    I have attached my code, with many more details, here:

    Essentially, media_handle_sideload doesn't seem like it is functioning for me as it is detailed in documentation and the StackExchange post I mention in the pastie code (at least as I understand it). I've been banging my head against this all day and I'm not really sure what to do with it.

    If you very talented folks have any ideas as to
    a) why media_handle_sideload isn't working for me like it should or
    b) a better/more efficient way to do this with Gravity Forms
    I would be very, very grateful.

    Thanks in advance,

    Posted 10 years ago on Friday December 16, 2011 | Permalink
  2. sascha

    Hey David,
    sorry I cannot help you with your question. Just came across this post, as I am trying to find out how to add the ability to update a custom post type as you described above. If you would not mind sharing some code, I would be very grateful! Also how to display the info that is in the post already in the editing form, etc....

    Updating the profile I found a tutorial for just a few minutes back, but again, if you want to share some code, then please do.

    BTW: updating images would be awsome

    Posted 10 years ago on Saturday January 14, 2012 | Permalink