Well OK, that's a third option. You can use PHP to populate that area with content of the sort the script expects to see there.
But that's PHP, well mostly, whatever PHP imports must appear on the page in the sort of markup that the script requires. From what you say and the looks of the code, you must have that part worked out though.
But the PHP part isn't working any longer. Since it's pulling from posts, if the PHP code isn't getting the posts' data for any reason, or if there is no data to get, that would be a problem. It's impossible for me to tell for sure what the problem is. I think I'd need access to the server to be able to figure that out with certainty. I don't want that anyway. It looks like:
PHP Code:
$my_query = new WP_Query('category_name=featured&showposts= 3');
isn't returning any data. So the while loop never executes. In cases where that happens, there needs to be some way for the PHP code to realize that and to instead bring in some default content.
But, as I said that's PHP. Nothing to do with this script. If you need help on the PHP ask in the PHP forum. But, as I say it just looks like there's nothing there to get, or that what it's looking for has moved. Folks in the PHP forum should be able to help with getting the code to recognize and react when it hasn't retrieved enough data.
Or that could be done via javascript. Move:
Code:
<script type="text/javascript">
featuredcontentglider.init({
gliderid: "glidercontent",
contentclass: "glidecontent",
togglerid: "togglebox",
remotecontent: "",
selected: 0,
persiststate: true,
speed: 200,
direction: "leftright",
autorotate: true,
autorotateconfig: [10000, 1] //if auto rotate enabled, set [milliseconds_btw_rotations, cycles_before_stopping]
})
</script>
to after the glider and add the highlighted to it:
Code:
. . . ref="#" class="prev"> < Previous </a>
<a href="#" class="next"> Next > </a>
</div>
</div>
<script type="text/javascript">
if(jQuery('#glidercontent').find('.glidecontent').size() < 3)
jQuery('#glidercontent').find('.glidecontent').remove().end().prepend(
'<div class="glidecontent">Default glide content 1 here</div>' +
'<div class="glidecontent">Default glide content 2 here</div>' +
'<div class="glidecontent">Default glide content 3 here</div>');
featuredcontentglider.init({
gliderid: "glidercontent",
contentclass: "glidecontent",
togglerid: "togglebox",
remotecontent: "",
selected: 0,
persiststate: true,
speed: 200,
direction: "leftright",
autorotate: true,
autorotateconfig: [10000, 1] //if auto rotate enabled, set [milliseconds_btw_rotations, cycles_before_stopping]
})
</script>
Bookmarks