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

    (@joedolson)

    WP to Twitter gets URLs for posts using the core ‘get_permalink()’ function. This should definitely be producing the right URL. There are some special cases where things could be odd; particularly if you’re copying posts or changing the post type for existing posts. Is that something you might be doing?

    Thread Starter oscarmiguelbandin

    (@oscarmiguelbandin)

    Thank you Joe.

    We are not changing the post type for existing post, consciously and manually at least. Copying posts neither.

    We need to research further.

    Thanks again!

    We have also been having the same thing happen as described by @oscarmiguelbandin

    We use the plugin Custom Post Type Permalinks to manage the url structure for custom posts. Not sure if that could be causing an issue, but thought I’d mention it.

    Happy to do some testing if you have suggestions @joedolson

    Plugin Author Joe Dolson

    (@joedolson)

    @oscarmiguelbandin Are you also using a custom post type permalink plug-in? That could be relevant, although I don’t know for sure.

    @stevesearer If you have the same issue occur with the plug-in disabled, that would eliminate it as a possibility.

    Thread Starter oscarmiguelbandin

    (@oscarmiguelbandin)

    Joe, we don′t use any custom post type permalink plug-in but we have a lot of filters that modify post types, rewrites and permalinks. We have them under the theme scope, could that be a hint?

    Thanks!

    Plugin Author Joe Dolson

    (@joedolson)

    It’s certainly possible. If those filters are executing the modifications after the post has already been sent to Twitter, then the version of the URL sent is going to relate to a previous URL.

    You may just need to change the timing of the filters so they run later. Are they attached to the post publish action?

    Thread Starter oscarmiguelbandin

    (@oscarmiguelbandin)

    Could be. But it is strange because it is not failing every time, just once on couple of months.

    And no, there are no custom actions attached to the post publish action.

    Thank you!

    @oscarmiguelbandin Do you happen to schedule your posts to publish at a future date (we do this)? Perhaps there is an issue when WordPress infrequently misses publishing scheduled posts?

    • This reply was modified 6 years, 6 months ago by stevesearer.
    Thread Starter oscarmiguelbandin

    (@oscarmiguelbandin)

    Sure, we usually to schedule post (70% percent of total published post) and we have currently installed the WP Missed Schedule plugin that usually works fine forcing post to avoid missing schedule.

    Thank you!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Tweets with wrong post type slug on permalink urls’ is closed to new replies.