Get User’s Facebook Photos as WordPress Upload

You can use media_sideload_image() which will take a link to a file and upload it to the media library. You do need to pass it some kind of $post_id @Sumit points out in the comments you could pass NULL into the $post_id field. media_sideload_image( $file_url, $post_id, $image_desc, $return ); If you need the uploaded image … Read more

Facebook link to website logo

I’d recommend checking out the following plugins: Yoast SEO Open Graph Protocol Framework Either one will take care of all of the Open Graph metadata. Once you have the plugin set up, you can simply go to your homepage and you will see a “Featured Image” widget: Pick your logo and you will see the … Read more

Are there any plugins yet that support Facebook Like, Google +1 and allow Social Interaction tracking on Google Analytics

This one is brand new: http://wordpress.org/extend/plugins/social-media-tracking/ and it sounds like it does what you want. But be watching Joost de Valk’s GA plugin. He mentioned just a few days ago in this thread that he’s working on it right now. He’s a prominent plugin author in the community and does good work. If you want … Read more

Simple plugins to post info about new blog entries?

For Facebook: http://wordpress.org/extend/plugins/simple-facebook-connect/ For Twitter: http://wordpress.org/extend/plugins/simple-twitter-connect/ For Google+ http://wordpress.org/extend/plugins/simple-google-connect/ The twitter and facebook plugins will autopost from your site to each service. The G+ plugin is new, and still under development. I don’t know that there is any plugin yet that pushes notifications to G+….

How can I post Facebook fan page status updates to my WordPress blog?

Pretty sure the Facebook fan page RSS feed URL is like this: http://www.facebook.com/feeds/page.php?format=atom10&id=YOURFBFANPAGEID The fan page ID is the string of numbers at the end of the URL when viewing the page, for example, Jon Stewart’s fan page id is 193859733506: http://www.facebook.com/pages/Jon-Stewart-for-President/193859733506 So you can do your normal RSS feed solution which takes entries and … Read more

How do I remove all hyperlinks that begin with a #?

Inspired by @Samuel Elh, but accounting for single or double quoted attributes and a href that might not be the first attribute of an anchor: function wpse_227315_strip_hyperlinks( $content ) { preg_match_all( ‘!<a[^>]*? href=[\'”]#[^<]+</a>!i’, $content, $matches ); foreach ( $matches[0] as $link ) $content = str_replace( $link, strip_tags( $link ), $content ); return $content; } add_filter( … Read more

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