Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <div class="container-fluid" id="post-content">
- <div class="row">
- <?php if( have_posts() ): while( have_posts() ): the_post();
- $attached_images = get_post_gallery_images($post->ID);
- ?>
- <div class="col-sm-12 col-md-6 col-lg-4 shadow" id="single-post-text">
- <h2 class=""><?php the_title(); ?></h2>
- <?php
- add_filter('the_content', 'remove_shortcode_from');
- the_content();
- remove_filter('the_content', 'remove_shortcode_from');
- ?>
- </div>
- <?php if($attached_images): ?>
- <div class="col-sm-12 col-md-6 col-lg-6" id="single-post-img">
- <?php foreach($attached_images as $image): ?>
- <img class="img-fluid w-100 show" src="<?php echo $image; ?>" alt="" title="" id="post-image" />
- <?php endforeach; ?>
- </div>
- <?php endif; ?>
- <?php endwhile; ?>
- <?php endif; wp_reset_postdata(); ?>
- </div>
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement