Hi,
I managed to figure it out, i wrote this custom function the_content ... but i think its strange your plugin doesnt output the normal except like other themes and plugins, i mean if you don't write an exceprt (the box is empty) it usually resorts to the Wordpress automatic excerpt
// Create PHP class that will hold methods
class MyRoyalSliderRendererHelper {
private $post;
private $options;
function __construct( $data, $options ) {
// $data variable holds WordPress post object only for Posts Slider
// for other types sliders it holds just data associated with slide, print it to see what's inside
$this->post = $data;
// slider options (that you choose in right sidebar)
$this->options = $options;
}
function the_content() {
$excerpt = apply_filters('the_content', strip_tags($this->post->post_content));
$excerpt = preg_replace(" (\[.*?\])",'',$excerpt);
$excerpt = strip_shortcodes($excerpt);
$excerpt = substr($excerpt, 0, 80);
$excerpt = substr($excerpt, 0, strripos($excerpt, " "));
$excerpt = trim(preg_replace( '/\s+/', ' ', $excerpt));
$excerpt = $excerpt.'...';
return $excerpt;
}
function post_id() {
return $this->post->ID;
}
}
3 MORE QUESTIONS BUT!,
See this site, http://stabmag.com/
I want to be able to scroll say a slideshow with 4 thumbnails total wide, but not just one thumbnail at a time.. I want to scroll the whole 4? how could i do this, also some sort of Instagram option would be awesome also!
And also in this slideshow they output the first image on every post,
- Any tutorials on how to make a custom Video Slideshow but using the Latest Posts?? the Video URL would come from custom field or meta . Like this would be perfect.....
http://dimsemenov.com/plugins/royal-slider/video-gallery/
Thanks,
Great plugin by the way very versatile!!
.
help.dimsemenov.com
No comments:
Post a Comment