大家好,希望你们一切顺利。我正在寻找一些帮助我的wordpress网站上的滑块im建设。我似乎无法弄清楚如何显示滑块中显示的每个帖子的类别并突出显示。有谁知道我怎么能做到这一点?我目前的代码在
之下<div id="slides">
<?php if (function_exists('yg_randomposts')) {
$parameters = array(
'limit' => 10, //Number of posts to show
//'excerpt' => 60, //excerpt length (letters)
'actcat' => true, //get posts current
'cusfield' => 'post-image', //custom field name of thumbnail image
'w' => 250, //width
'h' => 250, //height
'firstimage' => true, //get first image of post content
'atimage' => true, //get first attached image of post
'defimage' => 'http://watchthefeed.com/wp-content/uploads/2012/04/random-post-default.jpg' //default thumbnail image
);
//print random posts
yg_randomposts($parameters);
} ?>
</div><!--slider container-->