Authors own pages
Hi all,
I am creating authors own pages by creating wordpress page templates to apply to the new pages I create for the authors I want to give their own page (I'm doing it for all the authors on my site). I'm doing it this way because I am customising all sorts of things about the page for each author such as the content that I'll insert above their ad-loops and the sidebar on their pages.
The ad-loop I want to display needs to be author and category specific. I can already make it category specific with this piece of code:
'ad_cat' => 'buses', which means the ad-loop only displays ads that have been posted in the category called 'buses'. However I don't know what code to use in the loop so that I can have it display ads from a particular author. The code I'm using at the moment in it's entirety is below:
PHP Code:
$paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
query_posts(array('post_type' => 'ad_listing', 'ad_cat' => 'buses', 'caller_get_posts' => 1,'show_posts', 'paged' => $paged));
global $wp_query;
$total_pages = max( 1, absint( $wp_query->max_num_pages ) );
Can anyone help and let me know what code I need to add to make the loop display ads from a specified author.
Thanks,
Dave