This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Smart Custom Fields

বৰ্ণনা

Smart Custom Fields is a simple plugin for managing custom fields.

Features

  • Field group loop support.
  • Meta data revision support.
  • Meta data preview support.

Field Types

  • পাঠ
  • Textarea
  • Radio
  • বাছক
  • Checkbox
  • WYSIWYG editor
  • ছবি
  • File
  • Related Posts
  • Related Terms
  • ৰঙৰ কৰণি
  • Date picker
  • Datetime picker
  • Boolean
  • Message

How to get meta data ?

**The return value of each of the following methods is not sanitized. Please sanitize them if necessary. **

https://developer.wordpress.org/apis/security/escaping/

Post meta data

This method can get any meta data.

SCF::get( 'field-name' )

This method can get meta data of any group.

SCF::get( 'group-name' )

This method can get all meta data.

SCF::gets()

User meta data

This method can get any user meta data.

SCF::get_user_meta( $user_id, 'field-name' )

This method can get user meta data of any group.

SCF::get_user_meta( $user_id, 'group-name' )

This method can get all user meta data.

SCF::get_user_meta( $user_id )

Term meta data

This method can get any term meta data.

SCF::get_term_meta( $term_id, $taxonomy 'field-name' )

This method can get term meta data of any group.

SCF::get_term_meta( $term_id, $taxonomy, 'group-name' )

This method can get all term meta data.

SCF::get_term_meta( $term_id, $taxonomy )

Custom options page meta data

This method can get any custom options page meta data.

SCF::get_option_meta( $menu_slug, 'field-name' )

This method can get custom options page meta data of any group.

SCF::get_option_meta( $menu_slug, 'group-name' )

This method can get all custom options page meta data.

SCF::get_option_meta( $menu_slug )

Create custom options page

SCF::add_options_page( $page_title, $menu_title, $capability, $menu_slug, $icon_url = '', $position = null );

Register custom fields by the code.



This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters


<?php
/**
* カスタムフィールドを定義
*
* @param array $settings Smart_Custom_Fields_Setting オブジェクトの配列
* @param string $type 投稿タイプ or ロール
* @param int $id 投稿ID or ユーザーID
* @param string $meta_type post | user
* @return array
*/
function my_register_fields( $settings, $type, $id, $meta_type ) {
// SCF::add_setting( 'ユニークなID', 'メタボックスのタイトル' );
$Setting = SCF::add_setting( 'id-1', 'functions.php から追加 その1' );
// $Setting->add_group( 'ユニークなID', 繰り返し可能か, カスタムフィールドの配列 );
$Setting->add_group( 'group-name-1', false, array(
array(
'name' => 'field-1',
'label' => 'テストフィールド',
'type' => 'text',
),
array(
'name' => 'field-2',
'label' => 'テストフィール2',
'type' => 'text',
'default' => 2,
),
) );
$settings[] = $Setting;
return $settings;
}
add_filter( 'smart-cf-register-fields', 'my_register_fields', 10, 4 );
view raw

gistfile1.php

hosted with ❤ by GitHub

GitHub

https://github.com/inc2734/smart-custom-fields/

Translators

You can translate this plugin into your language by using GlotPress.

স্ক্ৰীনশ্বট

ইনষ্টলেশ্যন

  1. Upload Smart Custom Fields to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. You can setting custom fields in ‘Smart Custom Fields’ page.

পৰ্য্যালোচনা

ফেব্ৰুৱাৰী 13, 2025
This is a great, simple product, but it hasn't been updated for four months. At this time it has a critical vulnerability and needs to be updated.
ছেপ্টেম্বৰ 25, 2022
How can we display image field, like ACF: <?php $image = get_field('hero_image'); ?> " alt="<?php echo $image['alt']; ?>" /> SCF: <?php echo SCF::get('img')[0]; ?> isn't work.
নৱেম্বৰ 18, 2018
Really simple and useful plugin! Recommend to use for fast development
আটাই 20টা পৰ্য্যালোচনা পঢ়ক

অৱদানকাৰী আৰু বিকাশকাৰীসকল

“Smart Custom Fields” হৈছে মুক্ত উৎসৰ ছফ্টৱেৰ। এইসকল লোকে এই প্লাগিনত অৱদান আগবঢ়াইছে।

অৱদানকাৰীসকল

“Smart Custom Fields” 7টা ভাষাত অনুবাদ কৰা হৈছে। অনুবাদকসকলক তেওঁলোকৰ অৱদানৰ বাবে ধন্যবাদ।

আপোনাৰ ভাষাত “Smart Custom Fields” অনুবাদ কৰক।

বিকাশৰ প্ৰতি আগ্ৰহী?

ক’ড ব্ৰাউজ কৰক, SVN ৰিপজিটৰী চাওক নাইবা RSS-দ্বাৰা বিকাশৰ পঞ্জী ছাবস্ক্ৰাইব কৰক।

সলনি-পঞ্জী

5.0.8

5.0.7

5.0.6

5.0.5

5.0.4

5.0.3

5.0.2

5.0.0

4.2.2

4.2.1

= 4.1.6
* Some updates by @kengyu
* Add filter hook smart-cf-rest_api_post_type by @fuyuan9

4.1.5

4.1.4

4.1.3

4.1.2

4.1.0

4.0.2

4.0.0

3.1.7

3.1.6

3.1.5

3.1.4

3.1.3

3.1.2

3.1.1

3.1.0

3.0.1

3.0.0

2.3.0

2.2.3

2.2.2

2.2.1

2.2.0

2.1.1

2.1.0

2.0.0

1.7.0

1.6.7

1.6.6

1.6.5

1.6.4

1.6.3

1.6.2

1.6.1

1.6.0

1.5.3

1.5.2

1.5.1

1.5.0

1.4.0

1.3.2

1.3.1

1.3.0

1.2.2

1.2.1

1.2.0

1.1.3

1.1.2

1.1.1

1.1.0

1.0.3

1.0.2

1.0.1

1.0.0

মেটা

ৰে’টিংবোৰ

5টাৰ ভিতৰত 4.9টা তৰা।

অৱদানকাৰীসকল

সাহায্য

কিবা ক’বলগীয়া আছে? সহায় লাগে?

সাহায্যৰ ফ’ৰাম চাওক

দান কৰক

আপুনি এই প্লাগিনৰ উন্নতিৰ প্ৰতি সাহায্য আগবঢ়াব বিচাৰেনে?

এই প্লাগিনক অনুদান দিয়ক