• Resolved Texan78

    (@texan78)


    Forgive me as I will try to explain this the best I can. I am not great at explaining things.

    I have found a couple of posts on this but they didn’t really help exactly with what I am trying to do. What I would like is for my default message that is posted to FB and Twitter to be based off the title and message. Currently it only posts the title and URL, that is unless I edit it myself to change it but, you can’t do that from the WP app. So I need to set a default message. My posts are usually only 20-40 characters long anyways as we’re using it for incident reporting so length isn’t an issue. I have found some code in the publicize.php file based off other threads but not sure how to get it to add the post message. This is what I am trying to do.

    Facebook
    title > post-message

    Twitter
    title > post-message > url

    As you can see they are the same but, I don’t want to post the shortened URL for Facebook. So how can I remove the shortened URL from Facebook but still post it to Twitter and how can I add the post message to both for the default message. Right now it just posts the title and url.

    I found a page with this code but which looks like it would work but not sure where or how to implement it.

    $status_update = apply_filters( 'publicize_twitter_message', $message, $post, $url );

    $status_update = apply_filters( 'publicize_facebook_message', $custom, $post, $url );

    https://www.ads-software.com/plugins/jetpack/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Publicize: Default messages for Facebook & Twitter’ is closed to new replies.