Support » Fixing WordPress » Edit query_post onchange select box()

  • I’m New to WordPress

    In category page, i have select box for change the posts by authors in that category

    My select box

    <select name="sortByAuth">
    <option value="0">By Author</option>
    $authors = get_users('role=author');

    if(isset($authors) && !empty($authors)) {
    foreach($authors as $author) :
    <option value="<?php echo $author->ID; ?>"><?php echo $author->display_name; ?></option>

    Now i want posts by selected author from select

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Edit query_post onchange select box()’ is closed to new replies.