• Hi!

    showing a single staff member at a specific page was necessary for me.

    maybe you could integrate this into your plugin officially

    
    class-staffer-public.php
    
    @@ -201,6 +201,7 @@ class Staffer_Public {
     			'order' => 'DESC',
     			'orderby' => 'date',
     			'number' => -1,
    +			'id' => '',
     			'department' => '',
     			'layout'		 => $options['layout'],
     		), $atts ) );
    @@ -225,6 +226,10 @@ class Staffer_Public {
     			'tax_query' => $tax_query,
     		);
     
    +		if ( '' !== $id ) {
    +			$args['p'] = (int) $id;
    +		}
    +
     		$staff_posts = get_posts( $args );
     
     		if( $staff_posts ):
    

    example:
    [staffer id=576]

  • The topic ‘suggestion – show single staff member by post id’ is closed to new replies.