• Resolved mjcreative

    (@danser81)


    Is there a way to include an author archive page for job listings? Similar to the blog archive page that lists posts by user id? I’d like to be able to click on a user’s name and only their job listings populate the page.

Viewing 1 replies (of 1 total)
  • jeeltcraft

    (@jeeltcraft)

    This worked on my installation

    <? php
    $author_posts = get_posts(array(
       			'author'=>'$current_user',
       			'post_type'=> 'job_listing',
        			'orderby'=>'date',
       			'order'=>'desc',
       			'numberposts'=>10
    ));
    ?>
    • This reply was modified 8 years ago by jeeltcraft.
Viewing 1 replies (of 1 total)
  • The topic ‘Job Archives by User ID’ is closed to new replies.