• Resolved Olib

    (@olib)


    Hi,

    I have started a community site that allows users to submit posts via the front end (using the USP Pro plugin). The problem I have is that when a user posts, the featured image is not set unless I go into the back end, open the post and click “update”.

    I presume this is a case of the plugin not actually being called anywhere, but I’m not entirely sure where I should be looking to try and make this work.

    Is this something that needs to be amended / added to USP Pro so that it does call your plugin, or does something need to be changed with quick featured images so that it runs whenever a post is created, not just when an admin is in the back end?

    https://wordpress.org/plugins/quick-featured-images/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Olib

    (@olib)

    I seem to have fixed this by editing the quick-featured-images.php and removing the following if statement (but not the contents, obviously):

    /*
     * There is no frontend use of this plugin
     * so call it only in the backend
     *
     */
    if ( is_admin() ) { }

    Do you know of any reason that isn’t a good solution, functionality wise it seems to work fine.

    Plugin Contributor Martin Stehle

    (@hinjiriyo)

    Yes, the plugin is for admins only. Is there a free version of USP Pro? I want to understand how it saves user’s posts

    Thread Starter Olib

    (@olib)

    Plugin Contributor Martin Stehle

    (@hinjiriyo)

    Thank you!

    Plugin Contributor Martin Stehle

    (@hinjiriyo)

    Ok, after looking into USP I got some insights.

    In your case – ommitting the is_admin() check – QFI is fired when a new post is inserted by a WP standard function. USP calls this function. Unfortunately USP sets the category and tags for the user’s post after it has inserted the new post and so after QFI was fired.

    If QFI would run also on the frontend then USP would work with QFI only with 1. the rules for the post type equal to ‘Post’ (not pages, not custom post types) and 2. for user rules.

    QFI could work with USP if the USP author would add the $category and $tags data into the $postData array. And – of course – if I would let QFI also work on the frontend.

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

The topic ‘Compatability with front end posting’ is closed to new replies.