SVG Featured image not shown in twitter

Twitter has some limitations upon file extensions. I see that you’re passing on some variables within your meta tag. https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/markup.html URL of image to use in the card. Images must be less than 5MB in size. JPG, PNG, WEBP and GIF formats are supported. Only the first frame of an animated GIF will be used. … Read more

Plugin to show a widget hashtag as widget or shortcode? [closed]

There’s Tweet Blender, seems pretty flexible and full of options: Provides several Twitter widgets: show your own tweets, show tweets relevant to post’s tags, show tweets for Twitter lists, show tweets for hashtags Twitter Hash Tag Widget: A widget for displaying the most recent twitter status updates for a particular hash tag. Twitter Tracker: A … Read more

Add function to Simple Twitter Connect to not Tweet pages

Even better answer that doesn’t involve changing the plugin: remove_action(‘transition_post_status’,’stc_publish_auto_check’,10,3); add_action(‘transition_post_status’,’my_custom_publish_rules’,10,3); function my_custom_publish_rules($new, $old, $post) { if ($post->post_type == ‘page’) return; else stc_publish_auto_check($new, $old, $post); } Put it in a theme’s functions.php. Side note: Whenever you’re dealing with a function called by an action or filter hook, then you can easily wrap the call in … Read more

Checking post format during xmlrpc_publish_post

This is because of a variable mismatch. Your function accepts $post_ID, but you don’t actually use it. You’re instead trying to reference a global $post object and doing your post format check with $post->ID. With the XML-RPC request, this won’t work. Rewrite your function to use get_post() to fetch a post object from the passed-in … Read more

Including a post title in a twitter link

The problem is that get_the_title() will pass the title through a filter that texturizes the quotes. So a regular ” becomes a curly quote (“) and urlencode() will break it. So instead, write your own title function and use that: function my_get_the_title() { global $post; return $post->post_title; } This should bypass any unwanted filters and … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)