SK Testimonials
Modified Plugin to get a specific testimonial (1 post)

  1. enchantedillusions
    Posted 3 years ago #

    In my case, I needed to specify a specific testimonial to be called on the clients specific page.

    in sk-testimonials/skt_display/html_output.php on line 41 I added:

    if (isset($args['id'])) {
    		$postID = $args['id'];

    in the same file on line 78 I added:
    'p' => $postID,

    in sk-testimonials/skt_display/shortcodes.php on line 10 I added:

    'id' => '',

    Now I can use the following shortcode to specify the testimonial by ID (can be found by hovering over the testimonial name in the view all testimonials screen. Look for the number after 'post='.)

    [testimonials id=214]


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • SK Testimonials
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by enchantedillusions
  • This topic is not resolved
  • WordPress version: 3.4.1