• Resolved Sanjeev Mohindra

    (@sanjeevmohindra)


    Hi,

    I am using Latest version of the plugin and WordPress. I have made some changes a few days back on Apple News Sections (Deleted 1 section and added 1 new section). I was able to sync it back to this plugin and able to assign a category for each section but now whenever it’s publishing any post on Apple News, it’s not updating the status in WordPress.

    Posts are getting published correctly on Apple News but on WordPress, the status is always not published. I have activated debug feature also but I am not getting any emails for publishing event. If we do any modification, later on, it publishes a new version of the post rather then updating the same post.

    I have tried uninstalling and installing the plugin again but looks like it retains the settings so nothing has changed with it.

    Anything which we can do to sync the status back to WordPress?

    – Sanjeev

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Kevin Fodness

    (@kevinfodness)

    Hi @sanjeevmohindra

    To make sure I’m understanding your issue correctly, you’re publishing the articles from WordPress, correct? If you publish the article from Apple News itself the status won’t automatically synchronize back to WordPress. The plugin is intended to be used as the sole method of publishing and unpublishing content on Apple News, so if you’re doing anything outside of that workflow, I can’t guarantee that it will work as you expect.

    I have an open PR for a new CLI command to sync data with the API, which you could try, if you’re comfortable with git and wp-cli: https://github.com/alleyinteractive/apple-news/pull/421

    Thread Starter Sanjeev Mohindra

    (@sanjeevmohindra)

    Hi @kevinfodness

    Yes, I am publishing the articles from WordPress. It gets published correctly on Apple News, the only thing is that on WordPress it still says ‘Not Published’.

    So if we try to make an update to the existing article, it publishes a new copy of that article on Apple News rather updating the same article. I have enabled the debug settings but I am not getting emails for the publish event.

    It was working correctly until last month, the only change I have made in the Apple News is deleting a section and addition a new section. Not sure if that’s the cause of this.

    I have another blog and it’s working correctly there, so I am still surprised about this issue on this blog.

    Plugin Author Kevin Fodness

    (@kevinfodness)

    Yeah, that’s bizarre. It’s almost as if the metadata that links the post between Apple News and your site isn’t getting saved.

    Do you have database access? Can you run a query to determine if there is Apple News postmeta on the posts? The relevant entries would have a meta_key that is prefixed with apple_news_api_.

    I’d also check error logs on the server. If the PHP process is hitting an error after it sends the data to the API but before it saves the response back to the postmeta table, that would explain the lack of linkage.

    Thread Starter Sanjeev Mohindra

    (@sanjeevmohindra)

    Hi @kevinfodness,

    I have checked the metadata for Apple News. My posts until mid of Oct-17 have Apple news metadata. After that none of the posts have those metadata.

    I have published few posts yesterday and I have got the success message on the dashboard that the post got published correctly on Apple News but no metadata was saved. I did not see any PHP errors in the server log. Next time I will try to look for DB errors also.

    Anyhow, my blog is due for an upgrade and I am planning to move it next week. Let me see if it still persists in the new environment.

    Plugin Author Kevin Fodness

    (@kevinfodness)

    Sounds good—let me know what you find out.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Publish Status Not Synced With WordPress’ is closed to new replies.