%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/tif-dev/wp-content/themes/inkfactory/
Upload File :
Create Path :
Current File : //var/www/tif-dev/wp-content/themes/inkfactory/single-tattoo-styles.php

<?php

/**
 * The template for displaying all single posts
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
 *
 * @package Inkfactory
 */

get_header();
?>
<div class="page-wrapper">
	<?php
	while (have_posts()) :
		the_post(); ?>
		<div class="container">

			<!-- Breadcrumbs  -->
			<?php
			if (function_exists('yoast_breadcrumb')) {
				yoast_breadcrumb('<div class="breadcrumbs"><div class="breadcrumbs__wrapper">', '</div></div>');
			}
			?>
			<h1 class="h1 main-title"><?php the_title(); ?></h1>
			<div class="content-wrapper">
				<?php the_content(); ?>
			</div>
		</div>
	<?php endwhile; ?>
	<?php wp_reset_postdata(); ?>

	<div class="gallery-slider">
		<div class="container">
			<div class="gallery-slider-js swiper swiper-container">
				<div class="swiper-wrapper">
					<?php 
					$query = new WP_Query([
						'post_type' => "tattoo-styles",
						'post_status' => 'publish',
						'posts_per_page' => -1,
						'post_parent' => 0,
						'post__not_in' => array($post->ID),
					]);
					?>
					 <?php while ($query->have_posts()) : $query->the_post(); ?>
						<div class="gallery__item swiper-slide">
							<?php the_post_thumbnail('medium', array('class' => 'img-responsive swiper-lazy')); ?>
							<div class="swiper-lazy-preloader"></div>
							<div class="gallery__item-content">
								<h3 class="h3"><?php the_title(); ?></h3>
								<a href="<?php the_permalink(); ?>" class="btn btn_violet btn_big">
									<span>GO</span>
									<span>></span>
								</a>
							</div>
						</div>
					<?php endwhile; ?>

				</div>
				<div class="swiper-scrollbar"></div>
			</div>
		</div>
	</div>

</div>

<?php
get_footer();

Zerion Mini Shell 1.0