Server-side sorting of posts

The display of posts is controlled by WordPress Loop. It has a lot of possible arguments, but they are rarely exposed in URL (especially if using pretty permalinks). But it is possible to make use of arguments by manually adding them to URL. For sorting see Orderby Parameters. Your example would be something like: domain.com/?orderby=date … Read more

WordPress blog post cloned and stolen?

Yes, they can. There is nothing strange or technically complex about that. And before you ask – no, it’s pretty much unrealistic to protect public web page from being copied. My process to deal with such goes roughly like this: Contact blog owner and point out that your posts are not meant to be copied … Read more

How to pull blogposts using shortcodes

paste this code in your theme’s functions.php file function custom_query_shortcode($atts) { // EXAMPLE USAGE: // [loop_shortcode the_query=”showposts=100&post_type=page&post_parent=453″] // Defaults extract(shortcode_atts(array( “the_query” => ” ), $atts)); // de-funkify query $the_query = preg_replace(‘~&#x0*([0-9a-f]+);~ei’, ‘chr(hexdec(“\\1″))’, $the_query); $the_query = preg_replace(‘~&#0*([0-9]+);~e’, ‘chr(\\1)’, $the_query); // query is made query_posts($the_query); // Reset and setup variables $output=””; $temp_title=””; $temp_link = ”; $temp_ex = … Read more

Using the “Latest posts” feature on a different site

You could insert the plugin’s shortcode into another page, by following the directions here. http://wordpress.org/extend/plugins/nurelm-get-posts/ Alternatively if you don’t necessarily need the plugin and simply want to create a page that displays posts, follow the example given here on the codex. http://codex.wordpress.org/Pages#A_Page_of_Posts Scribu, +1 .. as that’s essentially what you were suggesting to.

Multi-site: removing /blog from posts

Let see if I remember this correctly. Go to http://yoursite.com/wp-admin/options.php Find permalink_structure. By default, the value should be /blog/%year%/%monthnum%/%postname%/ Change the value manually to whatever value you like. e.g /pressreleases/%year%/%monthnum%/%postname%/ or just /%year%/%monthnum%/%postname%/. Then Save Changes. Now visit http://yoursite.com/wp-admin/options-permalink.php and DON’T click Save Changes. It should flush the rules. If you click Save Changes it … Read more