This was a case on a project where a custom listing post type had post meta that specified if it was as platinum sponsor, or a gold sponsor or a verified profile. The job was to list the platinum sponsors…
This was a case on a project where a custom listing post type had post meta that specified if it was as platinum sponsor, or a gold sponsor or a verified profile. The job was to list the platinum sponsors…
Here is the Query. Highlighted content will have to be changed for your case. <?php $my_query = new WP_Query( array( ‘post_type’ => ‘company’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘service’, ‘field’ => ‘slug’, ‘terms’ => get_query_var( ‘service’ ), ), ),…
Add this to the custom query: ‘paged’ => get_query_var(‘paged’, 1) Refer: Query Anything On WordPress Anywhere
/** * Modify WordPress Main Query – The Right Way * * @refer https://millionclues.com/wordpress-tips/modify-wordpress-main-query/ */ function modify_wp_main_query_done_right( $query ) { if ( $query->is_main_query() ) { $query->query_vars[‘meta_key’] = ‘statusverified_13141’; $query->query_vars[‘meta_value’] = 1; } } add_action( ‘pre_get_posts’, ‘modify_wp_main_query_done_right’ ); Refer WP Query to…
Add this script to your footer.php before the closing </body> <script> // Function that tracks a click on an outbound link in Analytics. // @refer https://support.google.com/analytics/answer/7478520?hl=en var trackOutboundLink = function(url) { gtag(‘event’, ‘click’, { ‘event_category’: ‘outbound’, ‘event_label’: url, ‘transport_type’: ‘beacon’…