[ create a new paste ] login | about

Link: http://codepad.org/9it99CUn    [ raw code | fork ]

PHP, pasted on Jun 7:
				<li id="item_1" style="display:none">
                        	<ul>
								<?php  query_posts ('category_name=food_menu');
				if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
                            	<li>
                                	<div class="item"><span><?php
foreach((get_the_category()) as $childcat) {
if (cat_is_ancestor_of(3, $childcat)) {
echo $childcat->cat_name;
}}
?>
</span></div>

                                        <ul style="display:none">
                                          <li>
                                          	<div class="left_block">
                                                <div class="name"><span><?php the_title (); ?></span></div>
                                                <div class="text"><span><?php the_content (); ?></span></div>
                                            </div>
                                           	<div class="price"><span><?php the_excerpt (); ?></span></div>
                                                <div class="cb">&nbsp;</div>
                                          </li>
                                        </ul>
                                        
<div class="cb">&nbsp;</div>
                                </li>
								 <?php endwhile; wp_reset_query (); ?>
                            </ul>
                        </li>


Create a new paste based on this one


Comments: