Get author ID with attachment ID

Back in the day I wrote a function to check for that (you can put it in functions.php and call it from your page): public function check_if_user_is_author($user_id, $post_id) { global $wpdb; $res = $wpdb->get_results($wpdb->prepare(“SELECT * FROM ” . $wpdb->posts .” WHERE ID = %d AND post_author = %d LIMIT 1″, $post_id, $user_id)); if(isset($res) && count($res) … Read more

Images not showing after moving site (but path id OK)

I’ll post the answer to my problem, which I got thanks to the links provided by Jesse. What I did was to delete the index.html and .touch files form the cache folder where the tinthumb.php file is located. After that it all worked perfectly!

Change image size when inserting Media?

Scaled images are generated at the time they are uploaded, not when inserted. You can choose the sizes that WordPress automatically generates for images that are uploaded in your Dashboard Settings under Settings > Media. Once an image has been inserted using Add Media, you can click the image and then click the edit image … Read more

How to Change WordPress Image URLs

you can either use a Plugin for redirection: http://wordpress.org/plugins/redirection/ (would be like editing the .htaccess) OR use a Plugin to edit the wordpress database (make sure to do a database backup first) http://wordpress.org/plugins/search-and-replace/

How to include a picture in a blog post such that it will show in Facebook?

You can add meta data, embedded between the <head> tags in the html of your blog post, to tell Facebook exactly what information to show when that content is shared. Here are the main meta tags Facebook uses: <!– Facebook Open Graph meta data –> <meta property=”og:title” content=”Title Here” /> <meta property=”og:type” content=”article” /> <meta … Read more

Images in the Twenty Fourteen theme

Well, that was… interesting. In a nutshell there seem to be two things in play here: max_posts set to 6 in add_theme_support( ‘featured-content’ quantity set to default 6 in Featured_Content class quantity defines how many posts there are, but can be no larger than max_posts. However while result can be pushed down by changing max_posts … Read more