Widget recent comment filter by post meta_value

$post_args = array( ‘post_type’ => ‘post’, ‘posts_per_page’ => -1, ‘meta_key’ => ‘field_name’, ‘meta_value’ => ‘field_value’, ); $post_query = new WP_Query( $post_args ); $posts_array= array(); if ( $post_query->have_posts() ) { while ( $post_query->have_posts() ) { $post_query->the_post(); $posts_array[] = get_the_ID(); //Array of post ids } wp_reset_postdata(); } //YOUR COMMENT ARGS SHOULD BE THIS $args = array( ‘number’ … Read more

Show products per page drop down

If I’m understanding your comment properly, then the solution is quite simple. In the StackOverflow answer you have this line right at the top: add_action( ‘woocommerce_before_shop_loop’, ‘ps_selectbox’, 25 ); What that line does is take the function you created (ps_selectbox) and it hooks it into the woocommerce_before_shop_loop action hook. WooCommerce is littered with these action … Read more

where is admin footer?

So the question that you found this code from here says that they added this to the admin_footer action. So you could add that custom_bulk_admin_footer to your functions.php, and then hook it into the admin_footer action with this after the function: add_action(‘admin_footer’, ‘custom_bulk_admin_footer’); Obviously you need to change the jQuery code to do what you … Read more