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

Easy Featured Content

설명

Quickly and easily mark any content that has an editing UI in the WordPress administrative section as featured. This plugin
also provides a template tag that you can use to display certain markup or styles for featured content and a query
variable that allows you to query for featured (or non-featured) content.

스크린샷

  • This is the metabox that will appear on all editing screens after plugin activation
  • This screenshot shows the links you can click to feature or unfeature any content on your site

설치

  1. Upload featured-content to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Indicate featured content through the row actions on the content management screen or the meta box in the content editing screen
  4. Use the query variable is_featured in your queries or the template tag featured_content_is_featured_content in your templates

FAQ

How do I make a post type featurable?

By default, the plugin only allows posts and pages to be featured. However, if you have a custom post type, you can easily add featured content support by modifying the following snippet:

function register_featured_content_support() {
    // Adds featured content support to the custom post type 'my-post-type-slug'
    add_post_type_support('my-post-type-slug', 'featured-content');

    // Removes featured content support from pages
    remove_post_type_support('page', 'featured-content');
}
add_filter('after_setup_theme', 'register_featured_content_support');
Why would I want to use this plugin?

If you have content on your site that you want to feature (maybe on the home page or in a sidebar) then you can use this plugin
to enable marking that content as featured. It works for any post type that provides an editing UI.

How do I use the query variable?

In your custom queries (new WP_Query, get_posts or query_posts) simply pass in the query variable is_featured as follows:

$featured_posts = new WP_Query(array('is_featured' => 'yes', 'post_type' => 'post'));

If you need to get only non featured content, you would do something like the following:

$non_featured_posts = new WP_Query(array('is_featured' => 'no', 'post_type' => 'post'));

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

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

기여자

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

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

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

변경이력

1.1.0

  • Better security
  • Code cleanup
  • Use has_post_type_support and add_post_type_support
  • Only posts and pages support featured content by default now

1.0.0

  • Initial release of plugin