• this is my syntax to make dropdown relating posting by category

    <select id="dropdown-post" onChange="if (this.value) window.location.href=this.value" style="width:100%">
    <option value="0" selected/>You're reading: <?php the_title();?>
    <?php
    
    $kategori_post_ini = get_the_category();
    $dropdown_query = new WP_Query('cat='.$kategori_post_ini[0]->cat_id);
    while ( $dropdown_query->have_posts() ) :
    	$dropdown_query->the_post();
    	echo '<option value="'. get_permalink() . '">'. get_the_title().'</option>';
    endwhile;
    wp_reset_query();
    ?>
    </select>

    but i don’t know how to make dropdown relating posting by custom taxonomiy?

  • The topic ‘Dropdown-Related Posting by Taxonomy?’ is closed to new replies.