Jetpack Publicize Custom Comment
-
Hey guys,
I was wondering if there is a way to set a default custom comment for shared posts. Unless I type something into the box, publicize will use the post meta description.
I would like to be able to set a custom message for all posts or disable the custom message completely.
-
You can use the
sharing_titlefilter to customize the default message used for all sharing buttons.
https://developer.jetpack.com/hooks/sharing_title/To learn more about actions and filters, and how to use them, you can check this page:
https://developer.jetpack.com/customize-jetpack-actions-filters/I hope this helps.
I’m not the best coder in the world.
I want the default custom comment posted to Facebook to be blank, unless I manually add a custom comment.
How could I do that using a filter?
-
This reply was modified 9 years ago by
gilesytheking.
To clarify, do you want to customize only the content that is shared on Facebook? Do you want to change that content when the post is automatically posted on Facebook when publishing the post, or the content that is shared on Facebook when someone clicks on the Facebook sharing button in one of your posts?
Yes only when posting to FB.
I am using an auto posting script to share videos from YouTube as posts. The script creates and publishes the video post and then publize shares it to FB.
Currently publicize is adding the meta description from the post as the custom message for FB.
I want to edit the content when publize shares the post to FB after publishing. The default message should be blank, unless I manually add a message in the custom message box.
Understood. In this case, the filter I mentioned earlier won’t work. You’ll need to follow a method based on this tutorial to create a custom Publicize message:
https://jeremy.hu/jetpack-hashtags-tweets-publicize/The tutorial explains how to add data to the Publicize messages (tags), but you can follow a similar method to remove the existing message and only leave a non breakable space,
.I hope this helps.
-
This reply was modified 9 years ago by
The topic ‘Jetpack Publicize Custom Comment’ is closed to new replies.