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

ACF Media Cluster

설명

ACF Media Cluster is an extension for Advance Custom Fields which adds the feature to add multiple media to post/pages. The plugin does come with shortcode or if you know how to write code then you can customize or write your own code and use the data provided by ACF Media Cluster as you wish.

  • Visually create your Fields
  • Add multiple media and you can also modify title, caption and description to anything
  • Assign your fields to multiple edit pages (via custom location rules)
  • Easily load data through a simple and friendly API
  • Uses the native WordPress custom post type for ease of use and fast processing
  • Uses the native WordPress metadata for ease of use and fast processing

Usage

Use the helper function below to pull data from the database. The function will be return an array. The helper function takes in 3 parameters.

acf_media_cluster(string|required $acf_field_name, int $postID, array $options);

Example

Based on the helper function above. Let say we want to pull annual reports from current page.

acf_media_cluster('annual_reports', get_the_ID());

The data that will be return will be an array. Now I can loop over the array and use the data anyway I want.

$ap = acf_media_cluster('annual_reports', get_the_ID());
if( !empty($ap) ){
    foreach($ap as $item){
        var_dump($item); //Use the data as you wish
    }
}

Options

The 3rd parameter of the acf_media_cluster(string|required $acf_field_name, int $postID, array $options); helper function is options which takes in an array. You can pass the following.

acf_media_cluster('annual_reports', array(
    'orderby' => 'post__in',
    'order' => 'ASC'
));

What are the values you can pass for order and orderby, please refer to https://developer.wordpress.org/reference/functions/get_posts/

Shortcode

In the text view of your editor, add the following shortcode where you want the media to appear.

[acf-media-cluster field_name="discussions" container_id="ml-table" container_class="ml-table2" skin="yes"]

The shortcode takes in the following parameters.

string|required $field_name – Which ACF field name should be used
string $container_id – Wrap the output with your custom CSS ID
string $container_class – Wrap the output with your custom CSS class
string $skin – Do you want default CSS styling to apply. yes|no

Issues

Just like any other WordPress plugin, this plugin can also cause issues with other themes and plugins. If you are facing issues making this plugin work on your WordPress site, please do ask for help in the support forum. This way we can help you out and prevent this issue from happening to someone else. If you want to talk to me directly, you can contact me via my website http://www.navz.me/

Compatibility

This ACF field type is compatible with:
* ACF 5

설치

  1. Copy the acf-media-cluster folder into your wp-content/plugins folder
  2. Activate the ACF Media Cluster plugin via the plugins admin page
  3. Create a new field via ACF and select the Media Cluster type
  4. Read the description above for usage instructions

후기

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

기여자 & 개발자

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

기여자

자국어로 “ACF Media Cluster”(을)를 번역하세요.

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

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

변경이력

1.0.0

  • Initial Release.