Community Forums › Forums › Archived Forums › General Discussion › integration wp plugin «Strong Testimonials»
Tagged: strong testimonials, testimonial
- This topic has 2 replies, 2 voices, and was last updated 8 years, 9 months ago by
Tom.
-
AuthorPosts
-
April 30, 2016 at 12:43 pm #184742
dkomov
MemberGood day to all!
I use in a project, a plugin Strong Testimonials that I was completely satisfied. But there is a problem with displaying each comment in the singular.
On the plugin support page the author gives recommendations to address this problem - but this code does not work on pages such as single-testimonial.php
Prompt, plz, in which part of the documentation of Genesis to watch. ...
or with such questions is not necessary to the forum, and here http://my.studiopress.com/help/ ?Thank you in advance
p.s.
Forgive me for my english ...May 8, 2016 at 2:23 pm #185213Tom
ParticipantHi,
To allow comments to be entered and displayed for Strong Testimonials requires one line of code in Genesis, added to functions.php.:(This uses the standard output for single testimonials, no custom template.)
add_post_type_support( 'wpm-testimonial', 'comments' );
New testimonials will have comments enabled automatically. For existing testimonials, each must be edited to enable comments by selecting/checking "Allow comments." in the Discussion panel of the post editor.
To add single-post-navigation across testimonials, add the following code to functions.php:
// Add single post nav for WPM single testimonial posts. // https://wpbeaches.com/add-custom-post-type-navigation-links-in-genesis/ add_action( 'genesis_entry_footer', 'wpb_prev_next_post_nav_cpt' ); function wpb_prev_next_post_nav_cpt() { if ( ! is_singular( 'wpm-testimonial' ) ) return; genesis_markup( array( 'html5' => '<div %s>', 'xhtml' => '<div class="navigation">', 'context' => 'adjacent-entry-pagination', ) ); echo '<div class="pagination-previous alignleft">'; previous_post_link(); echo '</div>'; echo '<div class="pagination-next alignright">'; next_post_link(); echo '</div>'; echo '</div>'; }
Choose your next site design from over 350 Genesis themes.
[ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]May 8, 2016 at 2:31 pm #185217Tom
Participant2nd post attempt
To allow comments to be entered and displayed for Strong Testimonials requires one line of code in Genesis, added to functions.php.:(This uses the standard output for single testimonials, no custom template.)
add_post_type_support( 'wpm-testimonial', 'comments' );
New testimonials will have comments enabled automatically. For existing testimonials, each must be edited to enable comments by selecting/checking "Allow comments." in the Discussion panel of the post editor.
To add single-post-navigation across testimonials, add the following code to functions.php:
// Add single post nav for WPM single testimonial posts. // https://wpbeaches.com/add-custom-post-type-navigation-links-in-genesis/ add_action( 'genesis_entry_footer', 'wpb_prev_next_post_nav_cpt' ); function wpb_prev_next_post_nav_cpt() { if ( ! is_singular( 'wpm-testimonial' ) ) return; genesis_markup( array( 'html5' => '<div %s>', 'xhtml' => '<div class="navigation">', 'context' => 'adjacent-entry-pagination', ) ); echo '<div class="pagination-previous alignleft">'; previous_post_link(); echo '</div>'; echo '<div class="pagination-next alignright">'; next_post_link(); echo '</div>'; echo '</div>'; }
Choose your next site design from over 350 Genesis themes.
[ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ] -
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.