1

At first, I'm sorry for my english, I'll try to do my best because I'm Argentinian.

I am using publicize to send my wordpress post's to my Facebook Fanpage.

This is how publicize send automatic posts.

enter image description here And I just need to delete description to send posts like this:

enter image description here

What should I do? I am trying to solve this but I can't.

Thanks!

  • Can you look at this answer. Similiar to your question. If you change some variables you can delete description or add more specific things. wordpress.stackexchange.com/a/226281/23042 – Serkan Algur Aug 11 '18 at 21:37
  • Thank you for your answer! I'm sorry but I don't understand :( should I paste thise code in my functions.php then my problem is solved? Thank you for your time! – Tincho Aug 11 '18 at 23:55
  • Answer's code add hashtags to content bu youcan change $custom_message = $content . ' ' . $hash_tags; to $custom_message = get_the_permalink(); will resolve your problem. I will add answer with corrected code. – Serkan Algur Aug 12 '18 at 2:07
0

Remove Jetpack's publicize description with this code. Add this code to your theme's functions.php

// Remove description of posts on social share
if ( class_exists( 'Jetpack' ) && Jetpack::is_module_active( 'publicize' ) ) {
    function tsj_publicize_hashtags() {
        $post = get_post();
        if ( ! empty( $post ) ) {
                $custom_message = get_the_permalink(); 
                update_post_meta( $post->ID, '_wpas_mess', $custom_message );
        }
    }
    /* Save that message */
    function tsj_cust_pub_message_save() {
    add_action( 'save_post', 'tsj_publicize_hashtags', 21 );
    }
    add_action( 'publish_post', 'tsj_cust_pub_message_save' );
}

Respond me if code works.

  • Hello! Thanks for your reply! I've tested this code but it doesn't work :/ I already added this code to my functions.php – Tincho Aug 12 '18 at 16:42
  • apparently it worked for twitter posts (I can only see my link on my twitters posts, not thumb or description). I don't want to change twitter settings I just want to change Facebook format posts... How can I do? Thanks! – Tincho Aug 13 '18 at 20:59
  • In Jetpack, custom messages probably same for all sharing platform. I will check documentation. – Serkan Algur Aug 13 '18 at 21:45
  • So, there is no chance to custom facebook posts? I just need to delete description and stay with title+link . So, I think we can delete only description, right? – Tincho Aug 13 '18 at 23:04
  • Anyone else could help me, please? :/ – Tincho Aug 15 '18 at 13:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.