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

Tidyhive Featured Posts

설명

This plugin adds the ability for the user to mark a post to be a featured post with just one click without the need of editing an individual post. The plugin also includes a widget which can display all the posts which have been marked featured.

Usage

  • Go to your admin dashboard page.
  • Open all posts page which displays the list of posts in table.
  • A column name ‘Featured posts’ will be there with a star icon in each row.
  • Click the star to make that post as featured.

Dashboard->Posts>All Posts

Instructions

Q1. How to display feature posts?

Plugin comes with a widget, which can be added to sidebar

Q2. How to display featured posts in any desired section of theme(Developers)?

In order to display featured posts in your theme, use the following code to fetch the posts.

$featured_posts = Thfp_public::thfp_get_featured_posts();

The above code return WP_Query object which you can use in a loop. Above static function accepts a parameter(int) which limits the number of posts which it can return.

Show the posts with the help of custom loop:-

if($featured_posts->have_posts()):
    while($featured_posts->have_posts()): $featured_posts->the_post();
        //Your code here
    endwhile;
endif;

You can also use your own wp_query. Make sure you use ‘tag’ key to be ‘featured’.

$args = array(
    'post_status'   =>  'publish',
    'tag'           =>  'featured',
    //Use any other needed args
);
$featured_posts = new WP_Query($args);

and then use the loop to display posts.

설치

  1. Upload thfp.zip to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

후기

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

기여자 & 개발자

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

기여자

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

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

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