wiorking on dbmob posts
This commit is contained in:
parent
60475d6dff
commit
02661e7287
42
archive-dbmod.php
Normal file
42
archive-dbmod.php
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* The template for displaying archive pages for the dbmod post type
|
||||
*/
|
||||
|
||||
get_header(); ?>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h1 class="archive-title"><?php echo post_type_archive_title('', false); ?></h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<?php if (have_posts()) : ?>
|
||||
<?php while (have_posts()) : the_post(); ?>
|
||||
<div class="col-md-4 mb-4">
|
||||
<?php get_template_part('template-parts/content', 'dbmod'); ?>
|
||||
</div>
|
||||
<?php endwhile; ?>
|
||||
|
||||
<div class="col-12">
|
||||
<?php
|
||||
the_posts_pagination(array(
|
||||
'mid_size' => 2,
|
||||
'prev_text' => __('Précédent', 'carhop'),
|
||||
'next_text' => __('Suivant', 'carhop'),
|
||||
));
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php else : ?>
|
||||
<div class="col-12">
|
||||
<?php get_template_part('template-parts/content', 'none'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php get_footer(); ?>
|
||||
Loading…
Reference in New Issue
Block a user