WP Rocker is an aggregation of sites chattering about WordPress.
Featuring more than 250 sources. Suggest a site »
Featuring more than 250 sources. Suggest a site »
Christmas contest: Win 3 copies of the new “Sunset Farm” theme
How to show WordPress post attachments
WordPress hack: Extend the body_class function
WordPress upgrade : Allow more time for slow servers
WordPress hack: Automatically insert author bio on each post
-
12 Dec 2009, 01:56 AM
Christmas contest: Win 3 copies of the new “Sunset Farm” theme
About the "Sunset Farm" theme The Sunset Farm theme is the prize fo this contest. Here is a screenshot of the theme, and you can see a live demo on this page . About ThemeGrade ThemeGrade – our sponsor for this contest – is a website that compare Premium WordPress themes. For example, they pick a... Read More » -
11 Nov 2009, 01:04 AM
How to show WordPress post attachments
To achieve this recipe, just paste the following code anywhere in your post.php file and attachments will be displayed. $args = array( 'post_type' => 'attachment', 'numberposts' => null, 'post_status' => null, 'post_parent' => $post->ID ); $attachments = get_posts($args); if ($attachments) { foreach... Read More » -
11 Nov 2009, 01:07 AM
WordPress hack: Extend the body_class function
Nothing hard at all. Paste the following code in your function.php file : add_filter('body_class','top_level_parent_id_body_class'); function top_level_parent_id_body_class($classes) { global $wpdb, $post; if (is_page()) { if ($post->post_parent) { $ancestors=get_post_ancestors($post->ID);... Read More » -
10 Oct 2009, 02:32 AM
WordPress upgrade : Allow more time for slow servers
To apply this hack, you'll have to edit one of WordPress core files. Keep in mind that it is never recommended. This hack should be applied only if you have problems while auto-upgrading WordPress. Open the wp-admin/includes/files.php file and go to line 448. You'll see the following: $response =... Read More » -
10 Oct 2009, 02:24 AM
WordPress hack: Automatically insert author bio on each post
Open your functions.php file and paste the following code. That's all you have to do! function get_author_bio ($content=''){ global $post; $post_author_name=get_the_author_meta("display_name"); $post_author_description=get_the_author_meta("description"); $html=" \n"; $html.=" \n";... Read More »