이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

Featured Posts Pro

설명

Featured Posts Pro

allows administrator and editor an option to set posts, pages & custom posts as a featured posts very easily. Posts, pages & custom posts can be set as featured posts using a checkbox on the posts list page or on the edit page of the post. Please see screenshots to be more clear.

Featured Posts Pro

also adds a widget that will list the recent featured posts. This is similar to the default recent posts widget except this widget displays recent featured posts instead. The template for the Featured Posts Pro Widget can be customized with your theme.

How to use in the theme

You can to get the featured posts, you need to make a custom query as follows

sample code to get the featured posts with orders

`$args = array(
‘post_type’ => ‘any’,
‘posts_per_page’ => 10,
‘no_found_rows’ => true,
‘post_status’ => ‘publish’,
‘ignore_sticky_posts’ => true,
‘meta_query’ => array(
array(
‘relation’ => ‘OR’,
array(
‘key’ => ‘post_featured_position’,
‘compare’ => ‘EXISTS’
),
array(
‘key’ => ‘post_featured_position’,
‘compare’ => ‘NOT EXISTS’
),
),
array(
‘relation’ => ‘AND’,
‘key’ => ‘is_post_featured’,
‘compare’ => ‘=’,
‘value’ => 1
)
),
‘orderby’ => ‘meta_value_num’,
‘order’ => ‘ASC’,
) ;

$featuredPosts = new WP_Query( $args );<h3>sample code to get the featured posts without order</h3>$args = array(
‘posts_per_page’ => 10,
‘no_found_rows’ => true,
‘post_status’ => ‘publish’,
‘ignore_sticky_posts’ => true,
‘meta_key’ => ‘is_post_featured’ //this is the meta key used for the featured posts
) ;

$featuredPosts = new WP_Query( $args );`

or if you simple want tp

How to customize the widget

You can customize the widget template as follows:
1. create a folder ‘featured_posts_pro_tpls’ inside your theme folder
2. create two php files named as ‘tpl_featured_posts_pro_large.php’ & ‘tpl_featured_posts_pro_small.php’ in the ‘featured_posts_pro_tpls’ folder you just created
3. template file ‘tpl_featured_posts_pro_large.php’ will be used to render the widget when widget size is selected as large & similarly ‘tpl_featured_posts_pro_small.php’ is for small widget size
3. copy and paste the content from plugin_fold er > featured-posts-pro > public > partials > featured_posts_pro-widget.php in the above two files
4. make the layout changes as you wish.

스크린샷

  • Posts list page with 'featured' option
  • 'Featured' option while creating or editing a new post
  • Featured Posts Pro as a widget
  • Widget template customization
  • Ability to use custom post types as well for the featured posts
  • Set ordering of the featured posts

설치

  1. Install using the WordPress built-in Plugin installer, or Extract the zip file and drop the contents in the wp-content/plugins/ directory of your WordPress installation.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. If you want to use the widget, then go to Apperance > Widgets > Featured Post Pro
  4. The options on the widget are self explained

FAQ

How can I contact you?

You can contact me from http://www.lakshman.com.np/featured-posts-pro/

후기

2016년 10월 15일 1 reply
feature image looks so funky it's vertical list https://postimg.org/image/7oroxkt9x/
모든 4 평가 읽기

기여자 & 개발자

“Featured Posts Pro”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Featured Posts Pro”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.3.0

The ability to include custom post types for the featured posts. The featured post can now be ordered.

1.3.2

‘Posts’ post type is selected by default

1.3.5

bug on ‘quick edit’ on posts page fixed

1.3.8

bug fixes

1.4

fixed bug that prevented the plugin to be used on child theme. Thx to Shane Bill on identifying this issue.