function custom_post_type_dropdown(){
 printf( '<select name="post_type_select">');
 foreach( get_post_types( array( 'public' => true ) ) as $posts_type ){
  $typeobj = get_post_type_object( $posts_type );
   echo '<option value="'. $typeobj->name .'">'. $typeobj->name .'</option>';
 print( '</select>' );                                     

I create a function in wordpress to find all my post types. I want to display all taxonomies of the selected value. Can I store my variable in php?

Read more here: How create a dropdown list in php with the value of an input select


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: