FB – Comment Moderation Tool bug? [duplicate]

Please make sure, the javascript code from facebook still on your footer, usually before </body> Like the below code. <div id=”fb-root”></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = “//connect.facebook.net/en_US/all.js#xfbml=1”; fjs.parentNode.insertBefore(js, fjs); }(document, ‘script’, ‘facebook-jssdk’));</script>

Best way to allow manageable social media URLS?

The best way is on the user profile page using the contact methods extension: add_filter( ‘user_contactmethods’, ‘more_contactmethods’ ); function more_contactmethods( $contactmethods ) { $contactmethods[‘twitter’] = ‘Twitter username’; $contactmethods[‘facebook’] = ‘Facebook URL’; return $contactmethods; } This adds fields to the user profile page for those social networks. You can have as many as you like, then … Read more

Facebook like button that redirects?

It’s not a simple process, but you can do it with some javascript code. Not to be shilling or anything, but my plugin Simple Facebook Connect makes this a LOT easier. Step 1: You need a Facebook Application for your website. SFC guides you through this and configures the javascript on your site. Step 2: … Read more

Extract image src from a post and send it to an external form

There is no built-in way to extract an image/image-src from the post body. If the images are attachments you can do it with get_children or WP_Query, and wp_get_attachment_image_src. function get_image_src_from_content_101578($content) { global $post; $args = array( ‘post_parent’ => $post->ID, ); $images = get_children($args); foreach ($images as $img) { var_dump(wp_get_attachment_image_src($img->ID)); } } add_action(‘the_content’,’get_image_src_from_content_101578′); You could also … Read more

Top 3 posts in last week ordered by Facebook and Twitter share counts

This is a bit of a multi-part question, so you’re getting a multi-part answer. Getting the Facebook count can be done by making a request to https://graph.facebook.com/URL. This will return a json object which contains, among other things, the number of “shares”. Working example which has 4 shares as of this writing: https://graph.facebook.com/http://ottopress.com/2011/wp-quickie-adding-chrome-voice-search/ Getting the … Read more

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