Simple Testimonials, test for no client name
-
Hi and thank you for the great testimonial plugin
I love how you can pick the one you want from the widget!My question: What if I am not using the Client Name and Company Name fields? I want to suppress the comma.
what conditional would test for whether there is data?
// conditional test here - if client and company have data, do this <h5> <?php echo $this->client; ?>,<br /><?php echo $this->company; ?> <?php if( testimonial_has_permission( $this->ID ) ): ?> <?php echo sprintf( '<br />Web: <a href="%s">%s</a>,<br />Email: <a href="mailto:%s">%s</a>', $this->website, $this->website, $this->email, $this->email ); ?> <?php endif; ?> </h5>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Simple Testimonials, test for no client name’ is closed to new replies.