Title: Featured Item Metabox
Author: HelgaTheViking
Published: <strong>2013년 1월 31일</strong>
Last modified: 2020년 2월 17일

---

플러그인 검색

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

![](https://s.w.org/plugins/geopattern-icon/featured-item-metabox.svg)

# Featured Item Metabox

 작성자: [HelgaTheViking](https://profiles.wordpress.org/helgatheviking/)

[다운로드](https://downloads.wordpress.org/plugin/featured-item-metabox.1.4.0.zip)

 * [세부사항](https://ko.wordpress.org/plugins/featured-item-metabox/#description)
 * [평가](https://ko.wordpress.org/plugins/featured-item-metabox/#reviews)
 *  [설치](https://ko.wordpress.org/plugins/featured-item-metabox/#installation)
 * [개발](https://ko.wordpress.org/plugins/featured-item-metabox/#developers)

 [지원](https://wordpress.org/support/plugin/featured-item-metabox/)

## 설명

I found I constantly needed a way for clients to mark a post as something they wanted
to feature and I’ve never found sticky posts particularly inuitive and the UI is
pretty hidden for new users. The simplest solution was a checkbox in prominently
located metabox.

Please note that this plugin, by itself, will not change how your posts are displayed.
It just gives the UI to users and a meta key to theme developers to query for.

#### 사용방법

This plugin simply adds a `_featured` meta key to every post with a value of `yes`
for featured items and `no` for everything else. Actual display of the featured 
items is entirely up to the theme developer, but an example ( place in your template
where you’d like to display a list of featured “Portfolios”) might be as follows:

    ```
    // params for our query
    $args = array(
        'post_type' => 'portfolio',
       'posts_per_page'  => 5,
       'meta_key'        => '_featured',
       'meta_value'      => 'yes'
    );

    // The Query
    $featured_portfolios = new WP_Query( $args );

    // The Loop
    if ( $featured_portfolios ) :

        echo '<ul class="featured">';

        while ( $featured_portfolios->have_posts() ) :
            $featured_portfolios->the_post();
            echo '<li>' . get_the_title() . '</li>';
        endwhile;

        echo '</ul>';

    else :

        echo 'No featured portfolios found.';

    endif;

    /* Restore original Post Data
     * NB: Because we are using new WP_Query we aren't stomping on the
     * original $wp_query and it does not need to be reset.
    */
    wp_reset_postdata();
    ```

Multiple queries per page load can slow down your site so it is worthwhile to take
advantage of the [Transients API](https://codex.wordpress.org/Transients_API), so
an alternate usage would be:

    ```
    // Get any existing copy of our transient data
    if ( false === ( $featured_portfolios = get_transient( 'featured_portfolios' ) ) ) {
        // It wasn't there, so regenerate the data and save the transient

       // params for our query
        $args = array(
            'post_type' => 'portfolio',
           'posts_per_page'  => 5,
           'meta_key'        => '_featured',
           'meta_value'      => 'yes'
        );

        // The Query
        $featured_portfolios = new WP_Query( $args );

        // store the transient
        set_transient( 'featured_portfolios', $featured_portfolios );

    }

    // Use the data like you would have normally...

    // The Loop
    if ( $featured_portfolios ) :

        echo '<ul class="featured">';

        while ( $featured_portfolios->have_posts() ) :
            $featured_portfolios->the_post();
            echo '<li>' . get_the_title() . '</li>';
        endwhile;

        echo '</ul>';

    else :

        echo 'No featured portfolios found.';

    endif;

    /* Restore original Post Data
     * NB: Because we are using new WP_Query we aren't stomping on the
     * original $wp_query and it does not need to be reset.
    */
    wp_reset_postdata();
    ```

Then to ensure that your featured posts list is updated, add a function to your 
theme’s functions.php to delete the transient when a portfolio (in this example)
post type is saved.

    ```
    // Create a function to delete our transient when a portfolio post is saved
    function save_post_delete_featured_transient( $post_id ) {
       if ( 'portfolio' == get_post_type( $post_id ) )
        delete_transient( 'featured_portfolios' );
    }
    // Add the function to the save_post hook so it runs when posts are saved
    add_action( 'save_post', 'save_post_delete_featured_transient' );
    ```

Simple queries should only need the `meta_key` and `meta_value` parameters, but 
if you need something more advanced then you might want to read about how to use
the more [complex Meta Query parameters](http://scribu.net/wordpress/advanced-metadata-queries.html).

#### 지원

Support is handled in the [WordPress forums](https://wordpress.org/support/plugin/featured-item-metabox).
Please note that support is limited and does not cover any custom implementation
of the plugin.

Please report any bugs, errors, warnings, code problems at [Github](https://github.com/helgatheviking/Featured-Item-Metabox/issues)

## 설치

 1. Upload the `plugin` folder to the `/wp-content/plugins/` directory
 2. 워드프레스의 ‘플러그인’ 메뉴에서 플러그인을 활성화하세요.
 3. Go to the plugin’s settings and select which post types for which you’d like to
    show the featured metabox

## 후기

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

## 기여자 & 개발자

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

기여자

 *   [ HelgaTheViking ](https://profiles.wordpress.org/helgatheviking/)

[자국어로 “Featured Item Metabox”(을)를 번역하세요.](https://translate.wordpress.org/projects/wp-plugins/featured-item-metabox)

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

[코드 탐색하기](https://plugins.trac.wordpress.org/browser/featured-item-metabox/)
는, [SVN 저장소](https://plugins.svn.wordpress.org/featured-item-metabox/)를 확인하시거나,
[개발 기록](https://plugins.trac.wordpress.org/log/featured-item-metabox/)을 [RSS](https://plugins.trac.wordpress.org/log/featured-item-metabox/?limit=100&mode=stop_on_copy&format=rss)
로 구독하세요.

## 변경이력

#### 1.4.0

 * Gutenberg compatibility

#### 1.3.2

 * fixes bug where toggle script wasn’t loading if “remove all” plugin option was
   checked

#### 1.3.1

 * fixes problem of quick edit not adjusting to toggle

#### 1.3.0

 * testing against WP4.4
 * on posts overview page, use ajax to toggle featured on/off
 * replace star images with dashicons

#### 1.2.4

 * testing against WP4.3
 * improved code formatting

#### 1.2.3

 * add featured_items_metabox_label filter
 * add featured_items_checkbox_label filter

#### 1.2.2

 * make plugin work on media attachments

#### 1.2.1

 * Fixing file rename

#### 1.2

 * switching to singular instance of plugin, to prevent the need to use globals (
   global still there for backcompat)
 * don’t show private post types as possibilities in options
 * update documentaion
 * update docbloc

#### 1.1.4

 * verify WP 3.8 compatibility

#### 1.1.3

 * fix more warnings. props @pushka

#### 1.1.2

 * php strict standards for static variables

#### 1.1.1

 * update FAQ

#### 1.1

 * fix whitescreen bug on ajax action for edit columns

#### 1.0.1

 * fix markdown for changelog

#### 1.0

 * Initial release.

## 기초

 *  버전 **1.3.2**
 *  최근 업데이트: **6년 전**
 *  활성화된 설치 **90+**
 *  워드프레스 버전 ** 3.8 또는 그 이상 **
 *  다음까지 시험됨: **5.3.21**
 *  언어
 * [English (US)](https://wordpress.org/plugins/featured-item-metabox/)
 * 태그:
 * [featured](https://ko.wordpress.org/plugins/tags/featured/)[metabox](https://ko.wordpress.org/plugins/tags/metabox/)
 *  [고급 보기](https://ko.wordpress.org/plugins/featured-item-metabox/advanced/)

## 평점

 별 5점 만점에 3점.

 *  [  1/5-별점 후기     ](https://wordpress.org/support/plugin/featured-item-metabox/reviews/?filter=5)
 *  [  0/4-별점 후기     ](https://wordpress.org/support/plugin/featured-item-metabox/reviews/?filter=4)
 *  [  0/3-별점 후기     ](https://wordpress.org/support/plugin/featured-item-metabox/reviews/?filter=3)
 *  [  0/2-별점 후기     ](https://wordpress.org/support/plugin/featured-item-metabox/reviews/?filter=2)
 *  [  1/1-별점 후기     ](https://wordpress.org/support/plugin/featured-item-metabox/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/featured-item-metabox/reviews/#new-post)

[모든  리뷰 보기](https://wordpress.org/support/plugin/featured-item-metabox/reviews/)

## 기여자

 *   [ HelgaTheViking ](https://profiles.wordpress.org/helgatheviking/)

## 지원

할 말 있으신가요? 도움이 필요하신가요?

 [지원 포럼 보기](https://wordpress.org/support/plugin/featured-item-metabox/)

## 기부

이 플러그인이 발전하도록 도우시겠습니까?

 [ 이 플러그인에 기부하기 ](https://www.paypal.com/fundraiser/112574644767835624/charity/1451316)