I’ve implemented that and will monitor with fingers crossed after the next automated ingestion run.
Thanks.
Update:
This thing gives with one hand and takes away with the other…
Which is to say, all the [[press_mention_information_publication-name]] [[press_mention_information_story-link]] has been tweeted out from the latest ingestions…
But the vast majority of #displayname# have been omitted!
That’s seriously weird. Is the post author still the user you expect, if you look at it in the admin?
Here’s one thing I do know…
Posts that have an *old* timestamp at publication are getting tweeted live as though they were new.
That is to say… in my development site, RSS content is ingested in to custom posts – some of those items in RSS tend to be historical. I can see items where post_date get set, correctly, for eg. November 16 that were nevertheless tweeted by WP To Twitter today, December 16, presumably because it fires upon wp_publish_post.
Though you might want to consider applying an option or brake, to ensure that only newly published content gets tweeted, that doesn’t solve the latest issue I mentioned above…
Regarding the missing [[press_mention_information_publication-name]] [[press_mention_information_story-link]], I can’t find a reason or pattern for this.
Also, making the discussed change to my plugin (to publish the post after meta data is added, rather than the other way around) appears to have broken part of my plugin’s function (no permalink is generated).
There could be another reason, but that’s it for now. I think I now need to abandon this for now, and retrench to ensure that my core function can be made to work correctly again, before returning to the idea of a tweeting solution.
Thanks.
That’s seriously weird. Is the post author still the user you expect, if you look at it in the admin?
All the info on my WordPress side is correct (apart from the new permalink quirk mentioned above). There is an author name present.
wp_publish_post() doesn’t generate a permalink; so you have two options: either set the post_name field when you insert the post originally, or use wp_update_post() instead of wp_publish_post() to change the post status. That should help you out.
But I still have no idea why anything would have happened with your author data.