Results 1 to 4 of 4

Thread: Authors own pages

  1. #1
    Thread Starter
    Junior Member dave_aj's Avatar
    Join Date
    Jul 2012
    Location
    United Kingdom
    Posts
    40
    Thanks
    3
    Thanked 2 Times in 1 Post

    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 max1absint$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

  2. #2
    bbocioaca's Avatar
    Join Date
    Jul 2012
    Location
    Buzau, Romania
    Posts
    160
    Thanks
    0
    Thanked 16 Times in 15 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Thread Starter
    Junior Member dave_aj's Avatar
    Join Date
    Jul 2012
    Location
    United Kingdom
    Posts
    40
    Thanks
    3
    Thanked 2 Times in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Veteran hugo's Avatar
    Join Date
    Aug 2010
    Location
    United Kingdom
    Posts
    310
    Thanks
    13
    Thanked 80 Times in 54 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. how to add authors link in blog
    By mefindcoupon in forum Clipper General Discussion
    Replies: 1
    Last Post: July 23rd, 2012, 12:38 PM
  2. how to add authors link in blog
    By mefindcoupon in forum Report Clipper Bugs
    Replies: 1
    Last Post: July 23rd, 2012, 12:38 PM
  3. Authors
    By chriswareham in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: June 17th, 2012, 03:27 PM
  4. Authors
    By aubertin in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: March 17th, 2012, 05:54 AM
  5. Pagination Error in Authors.php
    By bbuster79 in forum JobRoller General Discussion
    Replies: 17
    Last Post: January 4th, 2012, 03:09 PM