Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="content">
- <div class="postMargin"></div>
- <div class="pageWrapper">
- <?php query_posts( 'post_type=ministries'); ?>
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <?php
- $title= str_ireplace('"', '', trim(get_the_title()));
- $desc= str_ireplace('"', '', trim(get_the_content()));
- ?>
- <!-- beginning of custom post loop --!>
- <div class="cptWrapper">
- <h2 class="postTitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
- <div class="cptHead">
- <div class="cptImage"><?php the_post_thumbnail();?>
- </div>
- <div>
- <?php $the_website= get_post_custom_values('ministry_website');
- if($the_website[0] != ""){
- ?>
- <p><span class="infoLabel">Website:</span> <span class="infoData"><a href="http://<?=$the_website[0]?>"><?=$the_website[0]?></a><span><br />
- <?php }else{ ?>
- <p> <span class="infoLabel">Website:</span> <span class="infoData">None Listed</span><br />
- <?php } ?>
- <?php $the_phone= get_post_custom_values('ministry_phone');
- if($the_phone[0] != ""){
- ?>
- <span class="infoLabel">Phone:</span> <span class="infoData"><?=$the_phone[0]?></span><br />
- <?php }else{ ?>
- <span class="infoLabel">Phone:</span> <span class="infoData">None Listed</span><br />
- <?php } ?>
- <?php $the_email= get_post_custom_values('ministry_email');
- if($the_email[0] != ""){
- ?>
- <span class="infoLabel">Email:</span> <span class="infoData"><a href="mailto:<?=$the_email[0]?>"><?=$the_email[0]?></a></span><br />
- <?php }else{ ?>
- <span class="infoLabel">Email:</span> <span class="infoData">None Listed</span><br />
- <?php } ?>
- <?php $the_location= get_post_custom_values('ministry_location');
- if($the_location[0] != ""){
- ?>
- <span class="infoLabel">Location:</span> <span class="infoData"><?=$the_location[0]?></span><br /></p>
- <?php }else{ ?>
- <span class="infoLabel">Location:</span> <span class="infoData">None Listed</span><br /></p>
- <?php } ?>
- </div>
- <?php the_content(__('Read more'));?>
- <?php endwhile; ?>
- </div>
- <div class="navigation">
- <div class="alignleft icn-left"><?php next_posts_link('« Previous entries') ?></div>
- <div class="alignright icn-right"><?php previous_posts_link('Next entries »') ?></div>
- <div class="clear"></div>
- </div>
- </div>
- <?php else: ?>
- <h2>No Results</h2>
- <p class="icn-search">Please feel free to try again!<p/>
- <div id="searchArrow"></div>
- <p class="icn-home">Go back to the <a href="<?php echo get_option('home'); ?>/">frontpage</a>.<p/>
- <?php endif; ?>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement