Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author NextScripts

    (@nextscripts)

    Are you getting any errors?
    Please check your Log/History tab and let me know what do you have there.

    Thread Starter neha

    (@glassfairy)

    ok

    for some reason the the snap gets triggered before the custom field is updated and hence doesn’t post the custom field to the social media e.g

    function update_customfields($post_id)
    {
    $status = get_field(‘status’,$post_id);
    update_post_meta($post_id,’social’,$status);
    }

    add_action(‘save_post’,’update_customfields’);

    in snap i have the output set as %TITLE is %CF-status% , then the title is printed but status is always empty on the social media. for some reason, the SNAP triggers before the custom field is updated hence its always empty …how to get it to trigger after post’s custom field is updated.

    Thread Starter neha

    (@glassfairy)

    plz not it s

    add_action(‘pmxi_saved_post’,’update_customfields’); and not add_action(‘save_post’,’update_customfields’);

    SNAP triggers before the custom field is updated even if i use cron setting..it does take it into account and publishes emptydata immediately

    Thread Starter neha

    (@glassfairy)

    is there anyway i can hook it so that it crons on add_action(‘pmxi_saved_post’,’update_customfields’); instead of publish immediately.

    plz note ‘pmxi_saved_post’ is a wp all import hook to publish posts via importing xml or csv file.

    Thread Starter neha

    (@glassfairy)

    wp all import does this

    1. Activate WordPress save_post hook
    2. Attach custom fields to post
    3. Activate WP All Import pmxi_saved_post hook

    so how do i get SNAP plugin so that it activate on pmxi_saved_post.

    Plugin Author NextScripts

    (@nextscripts)

    SNAP is hooked to transition_post_status event of changing post status from whatever to published. Please update your fields before that event or use delayed autopostings.

    Thread Starter neha

    (@glassfairy)

    i did set it with cron do delay post by 2 mins…but it still doesn’t post thts the problem…though the field is present in the post after publish

    Thread Starter neha

    (@glassfairy)

    i set Use WP Cron to Schedule autoposts
    Do not autopost more than one post per network every 3 mins
    Randomize posting time ±2 minutes

    still the custom field is empty and it doesn’t post anything

    Plugin Author NextScripts

    (@nextscripts)

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘autopost not working automatically’ is closed to new replies.