Hi i have this code of flexslider written in featureflexslider.php
<?php
// Get all sticky posts, but only sticky posts
$sticky = get_option( 'sticky_posts' );
$args = array(
'numberposts' => 6, // Display up to 6 posts. Change at will
'post__in' => $sticky
);
$postQuery = get_posts($args);
foreach( $postQuery as $post ) : setup_postdata($post);
if ( has_post_thumbnail() ) { ?>
<li>
<a href="<?php echo get_permalink(); ?>" title="Go to <? php echo the_title(); ?>" rel="bookmark">
<?php the_post_thumbnail('feature-slider'); ?>
<p class="flex-caption"><?php the_title(); ?></p>
</a>
</li>
<?php}
endforeach; ?>
now i want the current title of the flexslider to appear outside the <ul class='slides'> but i don't know how to do it. this is my code in my header.php file
<div id="featured_posts">
<div class="flexslider">
<ul class="slides">
<?php get_template_part( 'featureflexslider' ); ?>
</ul>
</div>
<?php //I WANT THE CURRENT POST TITLE TO APPEAR HERE ?>
</div>