• Resolved pablostatile

    (@pablostatile)


    Hi all,
    I am having the following issue. I am using a Frontend post creation plugin (USP Pro), so I wondered how could I set the FIFU image_url before post creation. Is there a Field that I could update so as to allow FIFU plugin to execute when the post is created and therefore the image is associated to the post?
    I guess Another option would be to use the Integration (fifu_dev_set_image($post_id, $image_url)).
    Is the first option possible? Thanks!!!
    Pablo

    The page I need help with: [log in to see the link]

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

    (@pablostatile)

    The same question would apply in case that in the future I use a plugin to create posts automatically from a google doc form, defining columns as the input for every field of the created Post. In that case it would be optimal if there is a field associated to FIFU that I could insert the image_url, guessing that by having FIFU installed, the plugin is going to execute its code when the post is created by whichever away.
    Thanks!
    Pablo

    Plugin Author Marcel

    (@marceljm)

    Hi, @pablostatile.

    how could I set the FIFU image_url before post creation

    You can’t, because an external featured image belongs to a post. A featured image doesn’t exist without a post.

    The same question would apply in case that in the future I use a plugin to create posts automatically from a google doc form, defining columns as the input for every field of the created Post. In that case it would be optimal if there is a field associated to FIFU that I could insert the image_url, guessing that by having FIFU installed, the plugin is going to execute its code when the post is created by whichever away

    .
    There are a list of fields at FIFU Settings > REST API > Custom fields. However, that won’t be enough for displaying a featured image. That’s not too simple. FIFU still needs to create a lot of metadata registers, but to do that it needs to know when the post is created. So FIFU needs to know your plugin (we have integrations with WP All Import, WooCommerce and others) or your plugin should call the FIFU integration functions.

    Thread Starter pablostatile

    (@pablostatile)

    Hi, thanks for the answear. I don’t need the FIFU code to execute or even preview the image. I just need to add the option to the user creating the post in the frontend to incluide the url.
    If I don’t missinterpret you, if I populate the Custom field fifu_image_url and then the Post Creation Plugin that I use creates the post, in that case the FIFU code would execute automatically whenever I create a post, even if I don’t do it from the typical Admin page?
    Thanks!
    Pablo

    Plugin Author Marcel

    (@marceljm)

    I don’t need the FIFU code to execute or even preview the image. I just need to add the option to the user creating the post in the frontend to incluide the url.

    FIFU code needs to be executed, otherwise the image won’t be displayed.

    If I don’t missinterpret you, if I populate the Custom field fifu_image_url and then the Post Creation Plugin that I use creates the post, in that case the FIFU code would execute automatically whenever I create a post, even if I don’t do it from the typical Admin page?

    It depends.
    – What’s the plugin?
    – Does it have a free version that supports custom fields?

    • This reply was modified 2 years, 8 months ago by Marcel.
    Thread Starter pablostatile

    (@pablostatile)

    OK, so the FIFU code only executes only when the post is created via the standard admin create post? Or is /can somehow be “attached” to wordpress in a way that is “called” everytime any post creation plugin triggers the wp code to create a post/custom post? That would be ideal!

    If that option can’t be possible, In that case, if I add a script to the button that creates the post in the frontend that calls the code: fifu_dev_set_image($post_id, $image_url); that way could be a possible solution to integrate?

    btw, I am using USP Pro plugin + Custom Fields

    Thanks!

    Plugin Author Marcel

    (@marceljm)

    Or is /can somehow be “attached” to wordpress in a way that is “called” everytime any post creation plugin triggers the wp code to create a post/custom post? That would be ideal!

    There are multiple ways to create a post, for instace via SQL. So sometimes there is no wp code.

    If that option can’t be possible, In that case, if I add a script to the button that creates the post in the frontend that calls the code: fifu_dev_set_image($post_id, $image_url); that way could be a possible solution to integrate?

    That may work.

    btw, I am using USP Pro plugin + Custom Fields

    You and me aren’t allowed to talk about PRO plugins here.
    Could you confirm if this is the free version of your plugin?
    https://www.ads-software.com/plugins/user-submitted-posts/

    • This reply was modified 2 years, 8 months ago by Marcel.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to set the image_url using USP Pro (Frontend Post Creation)’ is closed to new replies.