Home Forums Plugin Support WP User Frontend Pro Hidden custom fields

This topic is: resolved

This topic contains 10 replies, has 3 voices, and was last updated by  Salih 4 years, 9 months ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #23452

    Salih
    Member
    Post count: 8

    Hi there I have a specific set up where I allow users to post videos by choosing the category of video game. At the same time I funnel every post to a ‘recent' section which requires the recent category also to be selected. Ideally this field is hidden so the user does not know that this is selected. How would I implement this?

    Other conditional logic I had created in gravity forms included specific background images using the custom field _bg_image based on the category the user chose. Is there any flexibility to achieve this?

    Finally the YouTube video does not show up in post if a rich editor is chosen. is there a work around?

    Thanks guys, great job with the plugin!

    #23461

    Sekander Badsha
    Member
    Post count: 2067

    Hello Salih,
    Everything you asked for is possible through User Frontend Pro. Here is our getting started guide: http://docs.wedevs.com/category/plugins/wp-user-frontend-pro/getting-started/

    Please read through the documents. You'll get all of your answers and discover some more possibilities with User Frontend Pro.

    #23467

    Salih
    Member
    Post count: 8

    Excellent, thank you very much! Any way you could point me to the specific sections of the documentation that relate to my question?

    I have set up the majority of the form and it works fine, these are the particular areas which are bugging me.

    #23614

    Salih
    Member
    Post count: 8

    Hi there any response to my question? I know the basic things but to set up a separate category field that is hidden and recent is always selected isn't really easy to understand from the guide you have referred me to. I managed to do all of this in gravity forms and am looking for this plugin to replace it.

    #23767

    Salih
    Member
    Post count: 8

    It's been 5 days since I posted and asked for support. Is it possible for you to help me or do I need to request a refund on your plugin? Simply telling me that everything I need is in the documentation is not good enough. I have read through your documentation and have a specific user case that needs to be addressed. With gravity forms I got it working out of the box. I'm not sure what the issue is here and why you can't assist me.

    #23858

    Sekander Badsha
    Member
    Post count: 2067

    Hello Salih,
    We're sorry for being late. The features you requested took us a while to test. So here I am with the solutions.
    1. One Default Category and Let the user choose one: use the code below in your theme's function.php and replace 1 by your default category's id.

    function wpufe_add_category( $postarr ) {
        if ( isset( $postarr['post_category'] ) ) {
            array_push( $postarr['post_category'], 1);
        }
    
        return $postarr;
    }
     
    add_filter( 'wpuf_add_post_args', 'wpufe_add_category' );

    and to let the users to choose a category use the category taxonomy in the form.

    2. Background image depending on category: This is a bit complex thing. You can hire a developer to make this feature available.

    3. YouTube Video on RichText Editor: You have to use the normal editor to embed YouTube videos from links.

    #24067

    Salih
    Member
    Post count: 8

    Ok no problems. With solution number one how do I make this work for the Dashboard when user also goes to edit and update the post, because once they use that the solution does not work.

    Thank you for your help here.

    #24555

    Sekander Badsha
    Member
    Post count: 2067

    I didn't understand your last reply. Can you please elaborate more?

    #24674

    Salih
    Member
    Post count: 8

    Hi Sorry for the late response.

    So the code you provided works fine in the submission form and the recent category is recorded without the user knowing. However when they go to edit their clip from their dashboard so the shortcode dashboard feature you have from the front end the ‘recent' category is wiped. So I need to have this code applied to the dashboard area as well.

    #24981

    Tareq Hasan
    Keymaster
    Post count: 2831

    To work the category in edit post area, add this code as well.
    add_filter( 'wpuf_update_post_args', 'wpufe_add_category' );

    #25275

    Salih
    Member
    Post count: 8

    Thank you that worked perfectly!

Viewing 11 posts - 1 through 11 (of 11 total)

The topic ‘Hidden custom fields’ is closed to new replies.