Get most recent media upload

I don’t think that you can use get_the_post_thumbnail function to get last uploaded media, but you can use get_post to get latest attachment and then wp_get_attachment_image to display images. $attachments = get_posts( array( ‘post_type’ => ‘attachment’, ‘posts_per_page’ => 1, ‘post_status’ => null, ‘post_mime_type’ => ‘image’ ) ); foreach ( $attachments as $attachment ) { echo … Read more

Working with a modified WordPress & Theme and updating WordPress

In terms of dealing with the old developer’s mess… I don’t know. But if you want to make a child theme in order to protect your future changes from being wiped out from updates, it’s easy: First create a new folder in wp-content/themes and call it whatever you want. Next create a file: style.css and … Read more

WordPress Player Profiles + PHP

I don’t know why you are talking about phpbb and bbpress? The actual problem does not involve forum software, does it? Something that I found is following: http://codex.wordpress.org/Author_Templates This explains how to create your player profiles. Create a author.php in your theme folder and make it display any author related information you want. You can … Read more

Facebook “like” open graph meta in header.php

I have this class from a while ago which still works fine on posts and pages using admin_head action hook <?php /** * Simple facebook open graph class for WordPress * * @author Ohad Raz * @version 0.1 * */ class simple_open_graph{ /** * Holds the default image url * @var string * @since 0.1 … Read more