Hi,
Realise that Flexslider is not a Toolset "thing" but having a nightmare trying to get it to work with custom user fields and Views. Have followed the info from https://toolset.com/forums/topic/how-to-useinstall-flexslider-in-a-custom-post-type-with-multiple-images/ and as far as i can tell have done everything correct but it simply wont work.
So far I've done...
Used the Code Snippets pluging to add
function flexslider_method() {
wp_enqueue_script(
'flexslider-min',
get_stylesheet_directory_uri() . '/js/jquery.flexslider-min.js',
array( 'jquery' )
);
wp_enqueue_style( 'flexslider', get_stylesheet_directory_uri() . '/css/flexslider.css');
}
add_action( 'wp_enqueue_scripts', 'flexslider_method' );
This seems to ok as there are
<script type='text/javascript' src='<em><u>hidden link</u></em>;
<link rel='stylesheet' id='flexslider-css' href='<em><u>hidden link</u></em>' type='text/css' media='all' />
showing in the page source and the files are in these locations.
The Views content template is
<div class="flexslider">
<ul class="slides">
[wpv-for-each usermeta="wpcf-rescue-gallery"]
<li>
[types usermeta="rescue-gallery"][/types]
</li>
[/wpv-for-each]
</ul>
</div>
and the JS for that content template is
jQuery(document).ready(function($) {
$('.flexslider').flexslider({
animation: "slide"
});
});
The page is being generated and displays the images one after another but the slider doesn't seem to be generated. The only thing I've noticed is the HTML seems to be a bit messed up as all the images are within a single LI tag and not separate ones...
<div class="flexslider">
<ul class="slides">
<li>
<img alt="" src="<em><u>hidden link</u></em>" />
<img alt="" src="<em><u>hidden link</u></em>" />
<img alt="" src="<em><u>hidden link</u></em>" />
<img alt="" src="<em><u>hidden link</u></em>" />
<img alt="" src="<em><u>hidden link</u></em>" />
<img alt="" src="<em><u>hidden link</u></em>" />
</li>
</ul>
</div>
Ignore the image names - using random ones via google to test things lol
Any help would be great - pretty sure its something simple but just cant work it out.