• Resolved onlanka

    (@onlanka)


    Please add following features in your plugin.

    • Preset / saved message format with hashtags (It’ll automatically apply for all the new posts):

    {POST_TITLE}

    Read more >> {PERMALINK}

    #news #SriLanka #SLnews

    • In settings, allow to use “Twitter Card”, (Yoast SEO has option to add “twitter:card” meta tag, you can use the same for twitter posts to add the og:image to tweets).
      <meta name=”twitter:card” content=”summary_large_image” class=”yoast-seo-meta-tag” />
    • This topic was modified 1 year, 10 months ago by onlanka.
    • This topic was modified 1 year, 10 months ago by onlanka.
    • This topic was modified 1 year, 10 months ago by onlanka.
Viewing 8 replies - 1 through 8 (of 8 total)
  • HI @onlanka, developer shared with us this snippet, so you can use it too and works really well:

    add_filter(
    	'autoshare_for_twitter_body',
    	function( $tweet_body ) {
    		return 'Here write what ever you need ' . $tweet_body . ' #slash1 #slash1 #slash1 #slash1 #slash1';
    	}
    );

    At this snippet, you can include a text before the ($tweet body) that would be your post/page title and @slashes.

    This includes too the PERMALINK to your post/page, plus the post/page image.

    Cheers!

    Thread Starter onlanka

    (@onlanka)

    @ibiza69

    Thank you!

    Thread Starter onlanka

    (@onlanka)

    @ibiza69 Hi again, I placed your code on autoshare-for-twitter/includes/utils.php (after Line 189) but it didn’t work.

    Please suggest me where should I put this piece of code

    Hi @onlanka, do not touch plugin code ever, I do not recommend you this, as when plugin updates, your code will be gone.

    Use a plugin for this type of things, just install it, open it, create a new code snippet, a title for it (so you know what is for) and then include you code on the editor it has included, after, and with only that, your code will work. For this code and for any other codes you’ll using now or in the future ??

    Here is the plugin we use:

    https://es.www.ads-software.com/plugins/code-snippets/

    Thread Starter onlanka

    (@onlanka)

    @ibiza69 thank you bro, I’ll give it a try!

    Thread Starter onlanka

    (@onlanka)

    @ibiza69 Yes it’s working nicely!!

    Thank you!

    Great @onlanka, for us its working well too, this is why we wanted to share it with you! Have a nice weekend ??

    any way that i could also make the image linked to the post url?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Preset message format with hash tags’ is closed to new replies.