Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="jumbotron">
- <?php
- $args = array(
- 'post_type' => 'portfolio',
- 'posts_per_page' => 3
- );
- $portfolio = new WP_Query($args);
- while($portfolio->have_posts()) : $portfolio->the_post();
- ?>
- <?php get_template_part('content', get_post_format());?>
- <?php
- endwhile;
- ?>
- </div>
- <?php wp_reset_postdata(); ?>
- <div class="card p-3"> <?php if(has_post_thumbnail()){
- the_post_thumbnail(array(200,200));
- }
- ?><a href="<?php esc_url(get_permalink()); ?>"><?php the_title() ?></a>
- <blockquote class="blockquote mb-0 card-body">
- <?php the_content() ?>
- <small><?php the_category() === null ? : the_category(); ?></small>
- </blockquote>
Add Comment
Please, Sign In to add comment