Skip to content

Instantly share code, notes, and snippets.

@danjjohnson
Created August 23, 2013 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danjjohnson/6319811 to your computer and use it in GitHub Desktop.
Save danjjohnson/6319811 to your computer and use it in GitHub Desktop.
add_action( 'woo_post_inside_after', 'woo_customise_testimonials_archive' );
if ( ! function_exists( 'woo_customise_testimonials_archive' ) ) {
function woo_customise_testimonials_archive() {
if ( 'testimonial' == get_post_type() ) {
$author = get_the_title();
$info = get_post_custom();
echo '<cite class="author">' . $author . '<span class="excerpt">' . $info[_byline][0] . '</span><!--/.excerpt-->';
echo '<span class="url"><a href="' . $info[_url][0] . '">' . $info[_url][0] . '</a></span>';
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment