开发者 |
hiren1612
hikebranding |
---|---|
更新时间 | 2020年11月24日 19:26 |
捐献地址: | 去捐款 |
PHP版本: | 3.0.1 及以上 |
WordPress版本: | 5.6 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
[posts_order posts=2 section=porder_name]
Parameters
Custom Posts Order plugin supports the "posts" parameter where you can pass the number of posts you want to display in frontend and "section" parameter where you can pass the name of the section to be displayed in frontend. For example if you want to display 3 posts from Section1 at a time then place the following code:
[posts_order posts=3 section=Section1]
By default it displays 5 posts.
Templates
Place this shortcode in any template parts of your theme.
`
`
<?php echo do_shortcode('[posts_order posts=3 section=porder_name]'); ?>
in template files, where in the "posts" parameter you pass the number of posts and name of the section in "section" parameter you want to display in frontend. 5 posts will be displayed by default .Contact us at http://www.satvikinfotech.com/