开发者 | getonlinepro |
---|---|
更新时间 | 2015年11月11日 23:00 |
PHP版本: | 3.5.1 及以上 |
WordPress版本: | 3.6 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
go_featured_news
to the /wp-content/plugins/
directory.You can call the plugin output in two ways:
<?php
$goargs = array(
'ID' => '', //string, gives unique id for the widget
'title' => '', //string, this is the plugin's title
'showtitle' => '1', //boolean, show plugin title
'numposts' => '7', //integer, number of posts to display
'category' => '', //get posts from these categories separated with comma (1,4,5)
'width' => '640', //integer, width of the plugin's main div
'height' => '300', //integer, height of the plugin's main div
'imgwidth' => '400', //integer, active image's width
'imgheight' => '300', //integer, active image's height
'activetitle' => '1' //boolean, show element's title
'postexcerpt' => '1', //boolean, display post excerpt
'excerptlength' => '', //integer, set the number of words for the rotating elements
'animate_details'=> '1', //boolean, enables jQuery animation for showing the details
'readmore' => '', //boolean, show readmore button
'rotation' => '1', //boolean, enable rotation
'rspeed' => '5000', //integer, rotation speed (ms)
'aspeed' => '1000', //integer, animation speed (ms)
'showlinks' => '1', //boolean, display links next to the rotator
'linkexcerpt' => '1', //boolean, display post excerpt under links
'linkexcerptlength' => '10', //sets the number of words for links excerpt
'linkalign' => 'right', //set the position of the link box
'showbubbles' => '1', // boolean, display pagination
'showarrows' => '', // boolean, display arrows
'showbubblestn' => '1', //boolean, display pagination thumbnails
'bubbletnwidth' => '85', //integer, set pagination thumbnail width
'bubbletnheight' => '', //integer, set pagination thumbnail height
'bubbletype' => 'bubbles', //set pagination type ('numeric' or 'bubbles')
'bubblepos' => 'top:0; right:0', //set pagination position
('top:0; left:0;','top:0; right:0;', 'bottom:0; left:0;', 'bottom:0; right:0;')
);
?>
You can do it by selecting a featured image at the post editor or you can use the plugin's custom media field. If you don't see that custom field, click on the 'Screen Options' at the top right corner of the post editor, and there tick the 'GO Featured News Media' checkbox.
<h3>
to <span>
<span>
from <h1>
<h3>
title in the .go-feat-element is removed