How to show full post on home page

You can alter query_posts – see http://codex.wordpress.org/The_Loop – but maybe the best thing to do is use a page template with a new query. WP will default to home.php instead of index.php if one exists, so you can leave index.php alone for other page to use. See http://codex.wordpress.org/Class_Reference/WP_Query Sample query; remove the permalink and/or title, … Read more

How to export 2 week’s worth of posts

The native import/export tool can do most of this, though I don’t think it will grab all the author profile information (not sure on that – I know it doesn’t bring over passwords, but it might bring the rest). In the WP admin panel go to Tools > Export and walk through the various option … Read more

A better code for no post format?

I’m not sure I understand. Do you just want to join all the if-statements together? If that’s the case you could use elseif, like so: <?php $format = get_post_format(); if ( false === $format ) { echo ‘This is a default post’; the_excerpt(); } elseif ( has_post_format( ‘video’ )) { ?> A VIDEO POST <?php … Read more

Extending post by email

If you dig into the code of postie (plugin), you’ll probably find your answer. In particular, see the filter sample files, and then trace backwards from there. From the FAQ: Can I add special text to the body of the post when using postie?, Yes. You can create your own function, and use the postie_post … Read more

Show 10 latest posts only from users with contributors role

you can use the author parameter of WP_Query here is a simple function to get you going with a hook to a shortcode and another hook to render this shortcode inside a simple text widget: function ten_latest_of_contributers($atts = null){ global $post; //store the current post data $temp = $post; $contributors = get_users(array(‘role’=> ‘contributor’)); //then create … Read more