WordPress.org

Ready to get started?Download WordPress

Forums

Portfolio Slideshow
Cannot add slideshow to existing page template (2 posts)

  1. psaxton2012
    Member
    Posted 2 years ago #

    Hello

    I am using the Portfolio Theme from Cloverthemes and want to replace their slider with this plugin

    Can someone show me the code I need to put into the php page?

    I have tried

    <?php echo do_shortcode('[portfolio_slideshow ID=73]');?>

    But nothing happens

    Do I need to include a file?

    Paul

    http://wordpress.org/extend/plugins/portfolio-slideshow/

  2. flamenco
    Member
    Posted 1 year ago #

    Hi!
    I was setting this up, and happened to see this. What you have is pretty close, I think, possibly a syntax problem?

    Here's what I used, and it works great. I used additional code to show only on a static homepage, obviously that's optional.

    <?php
    	if ( is_front_page() ) {
    		$myField = '<div class="whatever">[portfolio_slideshow id=7 size=full]';
    		echo do_shortcode($myField);
    		echo '</div>';
    	}
    ?>

    If something like that doesn't work, double-check your syntax. Beyond that, maybe your theme is wacked, or something's conflicting with the plugin's JQuery. Good luck.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic