With Ajax Post Carousel you can display posts as a carousel using jQuery for animations.
使用Ajax Post Carousel,您可以使用jQuery动画将帖子显示为Carousel。
The widget only preloads a few posts and Ajax is used to load more posts as the carousel advances (this is very useful when you have hundreds of posts).
该小部件仅预载了几篇文章,而随着轮播的发展,Ajax用于装载更多的文章(当您有数百篇文章时,这非常有用)。 p>
The featured thumbnail of each post is used for the carousel, so at least WordPress 2.9 is required.
每个帖子的精选缩略图都用于轮播,因此至少需要WordPress 2.9。
The widget can be totally customized using CSS.
可以使用CSS完全自定义小部件。
Only the basic styles are defined so the carousel works properly.
仅定义了基本样式,以便轮播正常工作。 p>
Features
功能 strong> p> ul>
BETA
BETA h3>
Be adviced we are releasing this software as beta software.
请告知我们,该软件将作为Beta版发布。
Our initial intention is to gather feedback and collaboration.
我们的初衷是收集反馈和合作。 p>
After testing and approval the plugin will launch oficially.
经过测试和批准后,插件将正式启动。 p>
Send us your comments to plugins@8manos.com
将您的评论发送给我们plugins@8manos.com p>
HOW TO
如何 h3>
- Carousels can be added using Widgets, Shortcodes or a PHP function.
- 轮播可以使用Widget,简码或PHP函数添加。 li>
- You can use the default styles included in the plugin or use your own css.
- 您可以使用插件中包含的默认样式,也可以使用自己的CSS。
Explained below.
在下面解释。 li>
ul>
Widget
小部件 h4>
This is the easiest way to add carousels to your site.
这是向您的网站添加轮播的最简单方法。
Just drag the “Ajax Post Carousel” widget to an available area and configure all settings.
只需将“ Ajax Post Carousel”小部件拖动到可用区域并配置所有设置。 p>
Shortcode
简码 h4>
You can use it to include carousels in your posts or pages.
您可以使用它在您的帖子或页面中包含轮播。
Add [apc-carousel] to use the default values.
添加[apc-carousel]以使用默认值。 p>
All the options in the widget can also be used with the shortcode:
窗口小部件中的所有选项也可以与短代码一起使用: p>
- random: Accepts 0 or 1. (default 0)
- 随机:接受0或1。(默认为0) li>
- visible_posts: Number of posts visible in the carousel.
- visible_posts:轮播中可见的帖子数。
(default 3)
(默认值为3) li>
- init_posts: Number of preloaded posts.
- init_posts:预加载的帖子数。
Equals number of visible posts + number of posts in the background.
等于可见帖子数+后台帖子数。
(default 9)
(默认为9) li>
- show_title: Whether to show the title of the post.
- show_title:是否显示帖子标题。
Accepts 0 or 1 (default 0)
接受0或1(默认为0) li>
- show_excerpt: Whether to show the excerpt of the post.
- show_excerpt:是否显示帖子的摘录。
Accepts 0 or 1 (default 0)
接受0或1(默认为0) li>
- loop: Accepts 0 or 1 (default 0)
- 循环:接受0或1(默认为0) li>
- post_type: Slug of the post type.
- post_type:帖子类型的子弹。
Accepts ‘post’, ‘page’, ‘all’ or any custom post type.
接受“帖子”,“页面”,“全部”或任何自定义帖子类型。
(default ‘post’)
(默认为“发布”) li>
- category: Slug of the category.
- 类别:该类别的子弹。
(default ‘all’)
(默认为“全部”) li>
- Posts can be filtered by taxonomy using: taxonomy-slug=term-slug
- 可以使用以下方法按分类对帖子进行过滤:taxonomy-slug = term-slug li>
ul>
Example:
示例: p>
[apc-carousel visible_posts=2 init_posts=8 show_title=1 show_excerpt=1 my-taxonomy=my-taxonomy-term]
[apc-carousel visible_posts = 2 init_posts = 8 show_title = 1 show_excerpt = 1 my-taxonomy = my-taxonomy-term] p>
PHP Function
PHP函数 h4>
The PHP function can be used in a theme template.
可以在主题模板中使用PHP函数。
The options and defaults are the same as in the Shortcode:
选项和默认设置与“简码”中的相同: p>
Ajax_Post_Carousel::show_carousel($random=0, $visible_posts=3, $init_posts=9, $show_title=0, $show_excerpt=0, $loop=0, $post_type='post', $category='all
Ajax_Post_Carousel :: show_carousel($ random = 0,$ visible_posts = 3,$ init_posts = 9,$ show_title = 0,$ show_excerpt = 0,$ loop = 0,$ post_type ='post',$ category ='all
', $tax_filter=”)
',$ tax_filter =”) p>
$tax_filter uses this format: ‘my-tax-1=my-term-1&my-tax-2=my-term-2’
$ tax_filter使用以下格式:“ my-tax-1 = my-term-1&my-tax-2 = my-term-2” p>
Example that returns the same output as the Shortcode example:
示例返回与简码示例相同的输出: p>
Use your own CSS
使用您自己的CSS h4>
There are to ways to style the carousels using your own css.
有多种方法可以使用自己的CSS设置轮播样式。 p>
- Copy the css file from wp-content/plugins/ajax-post-carousel/ajax_post_carousel.css into your theme directory and edit the copy.
- 将ws-content / plugins / ajax-post-carousel / ajax_post_carousel.css中的css文件复制到主题目录中,然后编辑副本。 li>
- Define your own styles in your theme stylesheet.
- 在主题样式表中定义自己的样式。
Just use the carousel id, so your rules have a higher priority than the rules from the plugin (for example: #apc_carousel_0 .apc_thumb{border:none;})
只需使用轮播ID,所以您的规则比插件中的规则具有更高的优先级(例如:#apc_carousel_0 .apc_thumb {border:none;}) li>
ol>