WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. enchantedillusions
    Member
    Posted 2 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]

    http://wordpress.org/extend/plugins/sk-testimonials/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

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