-
Notifications
You must be signed in to change notification settings - Fork 0
/
veg.php
43 lines (33 loc) · 1.07 KB
/
veg.php
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
<?php
/**
* Menu : vegetable specials
*
*/
?>
<div id="content" class="menus-content" role="main">
<!-- start vegetable specials query -->
<div class="category section">
<ul class="menus">
<?php $args = array('post_type' => 'vegitems'); ?>
<?php $loop = new WP_Query($args); ?>
<?php if ( $loop->have_posts() ) : while ( $loop->have_posts() ) : $loop->the_post(); ?>
<?php
echo "<li><div id='kmenuitem'>" ;
the_title('<h3>','</h3>');
echo "<span class='kitchen-entry'>" ;
the_content();
echo get_the_term_list($post->ID, 'price', '...', ', ', '');
echo "<br>" ;
echo "</span></li>" ;
endwhile;
?>
<?php else: ?>
<h1>No posts here!</h1>
<?php endif; ?>
<?php wp_reset_postdata(); ?>
</ul>
</ul>
</div></div>
<?php
wp_reset_query(); // Restore global post data stomped by the_post().
?>