0
大家好,希望你們一切順利。我正在爲我的wordpress網站上的滑塊即時貼尋找幫助。我似乎無法弄清楚如何顯示滑塊中顯示的每個帖子的類別並使其突出顯示。有誰知道我能做到這一點?我目前的代碼是如何在wordpress後縮略圖中顯示類別?
<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-->
感謝您的回覆..我試過這個,但沒有幫助: - /任何其他建議? – icanhazgiraffe