I really need help… I am looking for a solution about 28hours

I have implemented same in one of my project requirement using functions “wp_get_post_tags” and “get_posts” to get related posts of same tags to which current post belongs to. <?php // Get tags of current post $tag_objs = wp_get_post_tags($post->ID); $tags = array(); foreach ($tag_objs as $tag_obj) { $tags[] = $tag_obj->term_id; } // Get Posts $myposts = … Read more

How to get value of a selected option from select tag and use it in WP_query to filter posts?

I assume you have posts with custom fields that have your select fields values as values for these custom fields, in this case you should take a closer look in ‘Custom Fields Paramenters’ from the WP_Query class references at: https://codex.wordpress.org/Class_Reference/WP_Query#Custom_Field_Parameters doing so you can just compare you select fields values with your post custom fields … Read more