Is it possible to query a category with specified posts?

You should use a custom select query: $querystr = ” SELECT * FROM $wpdb->posts LEFT JOIN $wpdb->term_relationships ON($wpdb->posts.ID = $wpdb->term_relationships.object_id) LEFT JOIN $wpdb->term_taxonomy ON($wpdb->term_relationships.term_taxonomy_id = $wpdb->term_taxonomy.term_taxonomy_id) LEFT JOIN $wpdb->terms ON($wpdb->term_taxonomy.term_id = $wpdb->terms.term_id) WHERE ($wpdb->terms.name=”sounds-flavors” OR $wpdb->posts.ID IN(12345,12678)) AND $wpdb->term_taxonomy.taxonomy = ‘category’ AND $wpdb->posts.post_status=”publish” AND $wpdb->posts.post_type=”post” LIMIT 3 “; Take a look here: https://codex.wordpress.org/Displaying_Posts_Using_a_Custom_Select_Query Regards

Querying posts from wordpress with 2 or more conditionals

You can pass array with multiple queries to meta_query. Something like: ‘meta_query’ => array( array( ‘key’ => ‘eg-enddate’, ‘value’ => date(“d/m/Y”), ‘compare’ => ‘>’, ‘type’ => ‘numeric’ ), ‘relation’ => ‘AND’, array( ‘key’ => ‘eg-startdate’, ‘value’ => date(“d/m/Y”), ‘compare’ => ‘<‘, ‘type’ => ‘numeric’ ) ) For more please go through documentation: https://codex.wordpress.org/Class_Reference/WP_Meta_Query Note: Code … Read more

Using something else instead of using 9 wp_query

I don’t have a full detailed response for you, but here’s a few things I’d suggest: 1) Use template parts for each of those segments. That will help clean up the template so it’s easier to work with in the future. ( see here: https://konstantin.blog/2013/get_template_part/ ) 2) You could then create a helper function for … Read more

how to get dynamic data on wordpress from codeigniter?

If your footer file name is abc.php inside Codeigniter pages and you want to run that file in the WordPress directory. In the footer.php file in WordPress include your abc.php file. Otherwise, you can make your own functions to call or manage the content. <?php include ‘abc.php’; ?>