Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Change order of elements Reply To: Change order of elements


So I found in one of my old support threads here that I can use wpsp_after_content as a filter so with the following I should be able to output a custom field after the content however I’m finding it doesnt want to work. Something to do with the filter since if I change it to wpsp_before_content it outputs the custom field above fine. Any thoughts?

add_action( 'wpsp_after_content', 'tu_add_custom_meta_testimonial' );
function tu_add_custom_meta_testimonial() {
    $meta = get_post_meta( get_the_ID(), 'testimonial_source', true );
    if ( isset( $meta ) && '' !== $meta ) {
        echo '<div class="testimonial-source">' . $meta . '</div>';