Home Forums Plugin Support WP User Frontend Pro Date field NOT working

This topic is: not resolved

This topic contains 24 replies, has 3 voices, and was last updated by  Nayem 3 years, 7 months ago.

Viewing 10 posts - 16 through 25 (of 25 total)
  • Author
    Posts
  • #71939

    O Park
    Member
    Post count: 44

    Well that's what I have been asking from the beginning of the time.
    How do I change the actual date on post publish rather than custom field date?

    #71943

    Nayem
    Moderator
    Post count: 6480

    I will discuss with my developer. Please allow me some time.

    #72012

    Nayem
    Moderator
    Post count: 6480

    Please provide your login and FTP details by using this form: http://wedevs.com/provide-login-details/. I will do this custom work in your site.

    Thank you ๐Ÿ™‚

    #72125

    O Park
    Member
    Post count: 44

    Hi Nayem,

    I'm actually working on Localhost with Twenty Fifteen theme from WordPress… (Can't use this on any live sites till this issue gets fixed.)

    Could you please tell me what to do here? so I know what to fix/update and everyone else wants to do the same thing can get the information as well?

    #72135

    O Park
    Member
    Post count: 44

    So I spent some time on this issue and found that adding below code in your functions.php in your theme folder fixes custom date issue. Now it actually updates published date on the post.
    http://www.imageno.com/ytc6wy3yfrjepic.html

    However, update is still not working. any suggestions??

    
    function wpufe_set_custom_post_date( $args ) {
        if ( isset( $_POST['post_date'] ) ) {
            $args['post_date'] = !empty( $_POST['post_date'] ) ? gmdate( 'Y-m-d H:i:s', strtotime( $_POST['post_date'] ) ) : current_time( 'mysql' );
        }
        return $args;
    }
    add_filter( 'wpuf_add_post_args', 'wpufe_set_custom_post_date' );
    add_filter( 'wpuf_update_post_args', 'wpufe_set_custom_post_date' );
    #72300

    Nayem
    Moderator
    Post count: 6480

    Hello Park,

    We have added a new feature for this date field. If a user select a date from the custom field then this date will be the published date of that post. We have added this option too. So, you have to wait till our next release.

    Thanks.

    #72346

    O Park
    Member
    Post count: 44

    Hi Nayem,
    That's great to hear. I can't wait!
    Meanwhile tho, would you mind fixing my code to make update post to be working?
    and do you have timeline for the new release?

    #72550

    Nayem
    Moderator
    Post count: 6480

    Hello O park,

    Update post date from the custom field date- we have added this. So your custom code is not needed here. Please wait for a week. We will release an update within a week.

    Thanks.

    #73174

    O Park
    Member
    Post count: 44

    I just wanna check in to see how things are going for this update. Any progress on this??

    #73245

    Nayem
    Moderator
    Post count: 6480

    Hello Park,

    We are now in vacation. Our office will start from tomorrow and hope within this week we will release the update for WP User Frontend Pro.

    Thanks.

Viewing 10 posts - 16 through 25 (of 25 total)

The topic ‘Date field NOT working’ is closed to new replies.