0

I want to show the pages (not the posts) of an author on his author page.

Is it a listing possible ?

Many thanks in advance

  • Seems very much possible, yes. Have you tried so far? – kero Oct 10 '19 at 12:27
0

And add the username to the array

https://codex.wordpress.org/Function_Reference/get_pages  
  <?php $args = array(
        'sort_order' => 'asc',
        'sort_column' => 'post_title',
        'hierarchical' => 1,
        'exclude' => '',
        'include' => '',
        'meta_key' => '',
        'meta_value' => '',
        'authors' => '',
        'child_of' => 0,
        'parent' => -1,
        'exclude_tree' => '',
        'number' => '',
        'offset' => 0,
        'post_type' => 'page',
        'post_status' => 'publish'
    ); 
    $pages = get_pages($args); 
    ?>
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.