• Resolved nick31speakly

    (@nick31speakly)


    Hello,

    I have applied Salesforce fieldmaps to bring in data then assigned this data to display in a CPT. Is there a way I can have my custom posts publish automatically when this is pulled from Salesforce?

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I have to believe that there is a way yes, especially if you’re creating posts already. May just be a case of when inserting the post into the database, setting the post_status to publish, instead of draft which I think may be the default value.

    Hard for me to tell too much more without knowing how you’re creating the posts in the first place. For example, whether or not you’re using wp_insert_post(), or similar.

    Thread Starter nick31speakly

    (@nick31speakly)

    Thank you! Do you know how I could find that out? What template it might be in?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    It’s going to be wherever you’re doing this Salesforce Fieldmapping to and whatever code is related to that. There’s no one template that this is going to be done in. If that’s a plugin you’ve purchased or had developed for your site, then reaching out to the original devs are going to be your best bet. We don’t have anything to do with the process outside of making sure the post type is registered appropriately.

    Thread Starter nick31speakly

    (@nick31speakly)

    Got it. Thanks very much for your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Automatically publish CPT’ is closed to new replies.