display news with pictures 3 small and one large (loop)

I don’t know why have you put $b%4==1 condition. You can simply check for $b==1.And one more thing I would suggest is to use if and else both.So code would be something like this: <?php $b=1; $args = array( ‘tax_query’ => array( array( ‘taxonomy’ => ‘gens’, ‘field’ => ‘slug’, ‘terms’ => ‘newsgen’ ) ), ‘post_type’=>”, … Read more

Display the latest post from some selected authors

What you can do is the following: http://codex.wordpress.org/Function_Reference/get_posts_by_author_sql <?php $where = get_posts_by_author_sql( ‘post’, true, $user->ID); // get post query global $wpdb; $query = “SELECT ID FROM $wpdb->posts $where”; $post_ids = $wpdb->get_var( $wpdb->prepare( $query, ‘Get all posts’ ) ); ?> Did not try it but something simular in your case should help.

Post gallery as carousel

Use the same gallery shortcode generated in the visual editor, then add an attribute to note carousel. That way you piggyback on all the functionality with very little extra effort required. See this answer for how to approach this by replacing the default gallery shortcode.

ACF field not appearing correctly in loop

Insert the post ID in the_field function. See the documentation. <?php the_field($field_name, $post_id); ?> $field_name: the name of the field to be retrieved. eg “page_content” (required) $post_id: Specific post ID where your value was entered. Defaults to current post ID (not required). This can also be options / taxonomies / users / etc So in … Read more

Custom search (wp query by custom fields)

Found the problem – i was using array, when i just needed to use such arguments: $args = array( ‘post_type’=> ‘post’, ‘paged’ => $paged, ‘posts_per_page’ => 9, ‘meta_key’ => ‘summary’, ‘meta_value’ => $thesearch, ‘meta_compare’ => ‘LIKE’ ); Thanks for help guys.