WordPress multiple loops with default pagination

try now this code <?php $paged = ( get_query_var( ‘paged’ ) ) ? get_query_var( ‘paged’ ) : 1; $title = get_term_by(‘slug’, get_query_var(‘term’), get_query_var(‘taxonomy’) ); $args = array( ‘post_type’ => ‘suppliers’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘ad_category’, ‘field’ => ‘slug’, ‘terms’ => array(‘basic_advertiser’), ), array( ‘taxonomy’ => ‘supplier_categories’, ‘field’ => ‘slug’, ‘terms’ => $title->slug, ), … Read more

How to display a loop of custom post types in columns

This is an HTML/CSS question. Your PHP is mostly fine as is. You just need to remove the <br> from your code. Then, in your CSS, use ‘float’ to make the columns out of the divs. More info https://learn.co/lessons/css-column-structure-using-floats

Get a specific size from wp_get_attachment_image_src

Thanks maverick, your solution works <?php $args = array( ‘post_parent’ => $post->ID, ‘post_type’ => ‘attachment’, ‘numberposts’ => 15, // -1, show all ‘post_status’ => ‘any’, ‘post_mime_type’ => ‘image’, ‘orderby’ => ‘menu_order’, ‘order’ => ‘ASC’ ); $images = get_posts($args); if($images) { ?> <images> <?php foreach($images as $image) { ?> <image><![CDATA[<?php echo wp_get_attachment_image_src( $image->ID, ‘listing_gallery_2x’)[0]; ?>]]></image> <?php … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)