Show Blogroll of another WordPress site

You have a couple of options here, but first let me advise you away from querying the database directly. If your sites are that closely related, then they should be in a Multisite network … RSS On Site B, fetch the RSS of Site A and display the posts and author attributions there. You can … Read more

My post repeats itself on the second page [closed]

Use this code instead for query post. Parameter ‘paged’ is which that keep track of the pagination so you have to pass it on query posts. $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; $args = array( ‘cat’ => 0, ‘paged’ => $paged ); query_posts($args); Also try to avoid query_posts() unless its absolutely necessary. Use get_posts().

Sorting a query Field by date

&orderby=date will return posts by their dates. <?php query_posts(‘post_type=page&post_parent=2&posts_per_page=-1&orderby=date&order=ASC’); ?> Replace first line with this to show post according to their date. Reference – Passing variables to query_posts Update – To sort the posts as per custom field value, Here’s the new code. query_posts(‘post_type=post&posts_per_page=-1&orderby=meta_value&meta_key=next_open_day&order=ASC’); ?> Note – The date should be saved in – YYYY-MM-DD … Read more