-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle-testi.php
More file actions
34 lines (33 loc) · 1.63 KB
/
single-testi.php
File metadata and controls
34 lines (33 loc) · 1.63 KB
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
<?php get_header(); ?>
<div id="content" class="grid_24">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php
$custom = get_post_custom($post->ID);
$testiname = $custom["testimonial-name"][0];
$testitype = $custom["testimonial-type"][0];
$testiaddress = $custom["testimonial-address"][0];
?>
<blockquote class="testi-single" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="post-content">
<?php echo '<div class="testi-pic">'; the_post_thumbnail('testi-thumbnail'); echo '</div>'; ?>
<?php the_content(); ?>
<div class="name-testi single-testi"><span class="user"><?php echo $testiname; ?></span><?php if ($testitype!="") echo ', '; ?><span class="type"><?php echo $testitype; ?></span><?php if ($testiaddress!="") echo ', '; ?> <?php echo $testiaddress; ?></div>
</div>
</blockquote>
<?php endwhile; else: ?>
<div class="no-results">
<p><strong>There has been an error.</strong></p>
<p>We apologize for any inconvenience, please <a href="<?php bloginfo('url'); ?>/" title="<?php bloginfo('description'); ?>">return to the home page</a> or use the search form below.</p>
<?php get_search_form(); ?> <!-- outputs the default Wordpress search form-->
</div><!--noResults-->
<?php endif; ?>
<nav class="oldernewer">
<div class="older">
<?php next_posts_link('« Older Entries') ?>
</div><!--.older-->
<div class="newer">
<?php previous_posts_link('Newer Entries »') ?>
</div><!--.newer-->
</nav><!--.oldernewer-->
</div><!--#content-->
<?php get_footer(); ?>