• Does anyone see any issues with the following template fields… ?

    #author# @{{clearbit_person_twitter_handle}} of @{{clearbit_company_twitter_handle}} quoted in [[press_mention_information_publication-name]] [[press_mention_information_story-link]]

    Intermittently, it doesn’t correctly show author, clearbit_person_twitter_handle or press_mention_information_story-link (not missing all at the same time, just alternately missing). I can’t see a pattern at work, but fields that are present in WordPress seem to be randomly not showing in the tweets.

    Thanks.

Viewing 6 replies - 16 through 21 (of 21 total)
  • Thread Starter parakeet

    (@parakeet)

    I’ve implemented that and will monitor with fingers crossed after the next automated ingestion run.
    Thanks.

    Thread Starter parakeet

    (@parakeet)

    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!

    Plugin Author Joe Dolson

    (@joedolson)

    That’s seriously weird. Is the post author still the user you expect, if you look at it in the admin?

    Thread Starter parakeet

    (@parakeet)

    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.

    Thread Starter parakeet

    (@parakeet)

    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.

    Plugin Author Joe Dolson

    (@joedolson)

    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.

Viewing 6 replies - 16 through 21 (of 21 total)

The topic ‘Fields not appearing’ is closed to new replies.