Import tumblr post to wordpress blog

Iframe/embeded your tumblr into your wordpress new-page!? might not be the best but it will work… wordpress new page header tumblr tempalte code or iframe footer lets wait a bit for some more contributions…someone might have a better way to do it. You can edit this answer to improve it.

Custom Background: Can’t Set Color Default

You have to pass the $defaults as the second parameter to add_theme_support() per the Codex $defaults = array( ‘default-color’ => ‘000000’, ‘default-image’ => ”, ‘wp-head-callback’ => ‘_custom_background_cb’, ‘admin-head-callback’ => ”, ‘admin-preview-callback’ => ” ); add_theme_support( ‘custom-background’, $defaults);

Paginate WordPress Category Pages

paged is correct unless you’re using pretty permalinks, however, if you’re just trying to alter posts per page for categories, you should be using the pre_get_posts action, there’s no reason to use query_posts in the template: function wpa85791_category_posts_per_page( $query ) { if ( $query->is_category() && $query->is_main_query() ) $query->set( ‘posts_per_page’, 2 ); } add_action( ‘pre_get_posts’, ‘wpa85791_category_posts_per_page’ … Read more

Display latest 5 posts on homepage

The issue is with your $limit var, you can’t set a default value like that because WordPress overwrites it with an empty value. Check out the Shortcode API for the correct way to pass and set shortcode attributes. function custom_prev_posts( $atts ){ extract( shortcode_atts( array( ‘limit’ => 5 ), $atts ) ); // the rest … Read more

Wrap Meta Box with and for each new line

Try: <li> <?php echo wpautop( $lyrics_1);?> </li> instead of this line: <?php echo “<li>\n”; wpautop( $lyrics_1) ; “</li>\n”; ?> edit: thanks @Toscho for the syntax edit, I made a hasty error in my earlier revision 😉

Is it possible to have different header style blog titles in different categories?

I assume that any post belongs to only one category. Create respective CSS classes, e.g. ‘news-header’ and ‘mindset-header’, and use following code inside the loop: <?php // get post categories $categories = get_the_category(); // get single category $category = $categories[0]; // echo header with category class echo ‘<h2 class=”‘ . $category . ‘-header”>’ . get_the_title() … Read more