<?php
/**
 * Author:          Andrei Baicus <andrei@themeisle.com>
 * Created on:      23/08/2018
 *
 * @package Neve
 */
?>
<div class="post-card">
    <div class="wrap-post each-page">
        <a href="<?php the_permalink(); ?>">
            <?php echo get_the_post_thumbnail(); ?>
        </a>

        <a href="<?php the_permalink(); ?>">
            <h2><?php echo the_title(); ?></h2>
        </a>

        <!-- Custom Count number of words show on post -->
        <?php 
            $content = get_the_excerpt();
            $trimmed_content = "<p>".mb_substr($content, 0, 100)." <a class='readmore' href=". get_permalink() .">...Read more</a></p>";
            echo $trimmed_content;
        ?>
    </div>
</div>
