• Resolved arathra

    (@arathra)


    I’m having a very awkward problem. I have posts created by ACF pro. When the posts are written in the front end they are “tweaked” by a function and then posted live. Jetpack publicize will also send out notifications to Facebook, LinkedIn and Twitter.

    However, no matter how many solutions I’ve tried, I can’t get hashtags to add to the post sent out to Twitter (or any of the others for that matter).

    Now, since I want every single post to have the same tags added BEFORE the tile and again AFTER the title, is there a way I can hard code this into the plugin. (I know it’s not good practice but no matter which functions I’ve used it doesn’t work otherwise.)

    In other words, the titles could be

    a post about bananas

    pineapples from Nepal

    apples are a girls best friend

    And I want it to read in twitter

    #fruit a post about bananas #eatmorefruit

    #fruit pineapples from Nepal #eatmorefruit

    #fruit apples are a girls best friend #eatmorefruit

    (You get the gist.)

    So where can I add the hashtags to force ALL posts to have

    #fruit

    at the beginning and

    #eatmorefruit

    at the end?

    Many thanks for any help you can give!

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    This tutorial should help:
    https://jeremy.hu/jetpack-hashtags-tweets-publicize/

    If that doesn’t seem to work for you, could you let me know the code you tried to use?

    Thanks!

    Thread Starter arathra

    (@arathra)

    I tried that but it didn’t work. In the end though I found a solution (posted here for reference) taking code from the above.

    I had another function which manipulated the post; I simply add the update to the meta tag before the post was updated:

    // add the tags to the post title as $custom_message
    	update_post_meta( $post_id, '_wpas_mess', $custom_message );
    
    	// Update the post into the database
    	wp_update_post( $my_post );

    And it works now.

    Thanks for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘publicize hashtags add tags’ is closed to new replies.