-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
53 lines (34 loc) · 995 Bytes
/
Copy pathindex.php
File metadata and controls
53 lines (34 loc) · 995 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/**
* The template for displaying the content.
*
* (C) BYMARC
*
*/
?>
<?php get_header(); ?>
<!-- HTML content starts! -->
<!-- LOOP? index-->
<?php get_template_part('template-parts/stage/stage') ?>
<?php get_template_part('template-parts/content/filter') ?>
<h2>Alle Rezepte werden angezeigt</h2>
<?php $the_query = new WP_Query(array(
'post_type' => 'recipes',
'posts_per_page' => '2',
'orderby' => 'rand',
));
?>
<section>
<?php
while ($the_query->have_posts()) : $the_query->the_post(); ?>
<!-- <?php if (has_post_thumbnail()) : ?>
<?php the_post_thumbnail('_customtheme-single-post', array('class' => 'single-post-image')); ?>
<?php endif; ?>
<h1><?php the_title(); ?></h1> -->
<?php get_template_part('template-parts/content/recipe-loop') ?>
<?php endwhile;
?>
</section>
<!-- HTML content ends! -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>