NOTÍCIES
    $args = array( 'post_type' => ‘post’, ‘language’ => ‘catalan’, ‘posts_per_page’ => 5);
    $query_noticies = new WP_Query( $args );
    if ($query_noticies->have_posts()) :
    while ($query_noticies->have_posts()) :
    $query_noticies->the_post();

    $content = get_the_content(‘Read more’);
    $content = preg_replace(‘/]+./’,”, $content); // Remove first image of Post
    $content = apply_filters(‘the_content’, $content);
    //echo $content;
    //global $post, $wp_query, $paged;
    $cpage = ($paged) ? $paged : 1;
    ?>

  • if(has_post_thumbnail()) {
    ?>
    “>