• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

FOXWP

WordPressの始め方と使い方をわかりやすく解説!

  • HOME
  • WordPressブログの始め方
  • お問い合わせ
FOXWP / 開発 / Advanced Custom Fieldsの各フィールドタイプの返り値一覧【ACF】

Advanced Custom Fieldsの各フィールドタイプの返り値一覧【ACF】

最終更新日:2021年8月1日

目次 非表示
1 基本
1.1 テキスト
1.2 テキストエリア
1.3 数値
1.4 Range
1.5 メール
1.6 URL
1.7 パスワード
2 コンテンツ
2.1 画像
2.2 ファイル
2.3 Wysiwygエディタ
2.4 oEmbed
2.5 Gallery
3 選択肢
3.1 Select
3.2 チェックボックス
3.3 ラジオボタン
3.4 Button Group
3.5 真 / 偽
4 関連
4.1 Link
4.2 投稿オブジェクト
4.3 ページリンク
4.4 関連
4.5 タクソノミー
4.6 ユーザー
5 jQuery
5.1 Googleマップ
5.2 デイトピッカー
5.3 Date Time Picker
5.4 Time Picker
5.5 カラーピッカー
6 レイアウト

基本

テキスト

String

テキストエリア

String

数値

String

Range

String

メール

String

URL

String

パスワード

String

コンテンツ

画像

画像配列

array (size=24)
  'ID' => int 6
  'id' => int 6
  'title' => string 'fox-1883658_1920' (length=16)
  'filename' => string 'fox-1883658_1920.jpg' (length=20)
  'filesize' => int 450425
  'url' => string 'http://test.local/wp-content/uploads/2021/03/fox-1883658_1920.jpg' (length=65)
  'link' => string 'http://test.local/hello-world/fox-1883658_1920/' (length=47)
  'alt' => string '' (length=0)
  'author' => string '1' (length=1)
  'description' => string '' (length=0)
  'caption' => string '' (length=0)
  'name' => string 'fox-1883658_1920' (length=16)
  'status' => string 'inherit' (length=7)
  'uploaded_to' => int 1
  'date' => string '2021-03-31 09:14:12' (length=19)
  'modified' => string '2021-08-01 05:04:13' (length=19)
  'menu_order' => int 0
  'mime_type' => string 'image/jpeg' (length=10)
  'type' => string 'image' (length=5)
  'subtype' => string 'jpeg' (length=4)
  'icon' => string 'http://test.local/wp-includes/images/media/default.png' (length=54)
  'width' => int 1920
  'height' => int 1282
  'sizes' => 
    array (size=33)
      'thumbnail' => string 'http://test.local/wp-content/uploads/2021/03/fox-1883658_1920-150x150.jpg' (length=73)
      'thumbnail-width' => int 150
      'thumbnail-height' => int 150
      'medium' => string 'http://test.local/wp-content/uploads/2021/03/fox-1883658_1920-300x200.jpg' (length=73)
      'medium-width' => int 300
      'medium-height' => int 200
      'medium_large' => string 'http://test.local/wp-content/uploads/2021/03/fox-1883658_1920-768x513.jpg' (length=73)
      'medium_large-width' => int 720
      'medium_large-height' => int 481
      'large' => string 'http://test.local/wp-content/uploads/2021/03/fox-1883658_1920-1024x684.jpg' (length=74)
      'large-width' => int 720
      'large-height' => int 481
      '1536x1536' => string 'http://test.local/wp-content/uploads/2021/03/fox-1883658_1920-1536x1026.jpg' (length=75)
      '1536x1536-width' => int 1536
      '1536x1536-height' => int 1026
      '2048x2048' => string 'http://test.local/wp-content/uploads/2021/03/fox-1883658_1920.jpg' (length=65)
      '2048x2048-width' => int 1920
      '2048x2048-height' => int 1282
      'horizontal-thumbnail' => string 'http://test.local/wp-content/uploads/2021/03/fox-1883658_1920.jpg' (length=65)
      'horizontal-thumbnail-width' => int 674
      'horizontal-thumbnail-height' => int 450
      'horizontal-thumbnail-small' => string 'http://test.local/wp-content/uploads/2021/03/fox-1883658_1920.jpg' (length=65)
      'horizontal-thumbnail-small-width' => int 337
      'horizontal-thumbnail-small-height' => int 225
      'vertical-thumbnail' => string 'http://test.local/wp-content/uploads/2021/03/fox-1883658_1920.jpg' (length=65)
      'vertical-thumbnail-width' => int 720
      'vertical-thumbnail-height' => int 481
      'vertical-thumbnail-small' => string 'http://test.local/wp-content/uploads/2021/03/fox-1883658_1920.jpg' (length=65)
      'vertical-thumbnail-small-width' => int 360
      'vertical-thumbnail-small-height' => int 240
      'square-thumbnail' => string 'http://test.local/wp-content/uploads/2021/03/fox-1883658_1920.jpg' (length=65)
      'square-thumbnail-width' => int 360
      'square-thumbnail-height' => int 240

画像URL

String

画像ID

int

ファイル

ファイル配列

array (size=24)
  'ID' => int 6
  'id' => int 6
  'title' => string 'fox-1883658_1920' (length=16)
  'filename' => string 'fox-1883658_1920.jpg' (length=20)
  'filesize' => int 450425
  'url' => string 'http://test.local/wp-content/uploads/2021/03/fox-1883658_1920.jpg' (length=65)
  'link' => string 'http://test.local/hello-world/fox-1883658_1920/' (length=47)
  'alt' => string '' (length=0)
  'author' => string '1' (length=1)
  'description' => string '' (length=0)
  'caption' => string '' (length=0)
  'name' => string 'fox-1883658_1920' (length=16)
  'status' => string 'inherit' (length=7)
  'uploaded_to' => int 1
  'date' => string '2021-03-31 09:14:12' (length=19)
  'modified' => string '2021-08-01 05:04:13' (length=19)
  'menu_order' => int 0
  'mime_type' => string 'image/jpeg' (length=10)
  'type' => string 'image' (length=5)
  'subtype' => string 'jpeg' (length=4)
  'icon' => string 'http://test.local/wp-includes/images/media/default.png' (length=54)
  'width' => int 1920
  'height' => int 1282
  'sizes' => 
    array (size=33)
      'thumbnail' => string 'http://test.local/wp-content/uploads/2021/03/fox-1883658_1920-150x150.jpg' (length=73)
      'thumbnail-width' => int 150
      'thumbnail-height' => int 150
      'medium' => string 'http://test.local/wp-content/uploads/2021/03/fox-1883658_1920-300x200.jpg' (length=73)
      'medium-width' => int 300
      'medium-height' => int 200
      'medium_large' => string 'http://test.local/wp-content/uploads/2021/03/fox-1883658_1920-768x513.jpg' (length=73)
      'medium_large-width' => int 720
      'medium_large-height' => int 481
      'large' => string 'http://test.local/wp-content/uploads/2021/03/fox-1883658_1920-1024x684.jpg' (length=74)
      'large-width' => int 720
      'large-height' => int 481
      '1536x1536' => string 'http://test.local/wp-content/uploads/2021/03/fox-1883658_1920-1536x1026.jpg' (length=75)
      '1536x1536-width' => int 1536
      '1536x1536-height' => int 1026
      '2048x2048' => string 'http://test.local/wp-content/uploads/2021/03/fox-1883658_1920.jpg' (length=65)
      '2048x2048-width' => int 1920
      '2048x2048-height' => int 1282
      'horizontal-thumbnail' => string 'http://test.local/wp-content/uploads/2021/03/fox-1883658_1920.jpg' (length=65)
      'horizontal-thumbnail-width' => int 674
      'horizontal-thumbnail-height' => int 450
      'horizontal-thumbnail-small' => string 'http://test.local/wp-content/uploads/2021/03/fox-1883658_1920.jpg' (length=65)
      'horizontal-thumbnail-small-width' => int 337
      'horizontal-thumbnail-small-height' => int 225
      'vertical-thumbnail' => string 'http://test.local/wp-content/uploads/2021/03/fox-1883658_1920.jpg' (length=65)
      'vertical-thumbnail-width' => int 720
      'vertical-thumbnail-height' => int 481
      'vertical-thumbnail-small' => string 'http://test.local/wp-content/uploads/2021/03/fox-1883658_1920.jpg' (length=65)
      'vertical-thumbnail-small-width' => int 360
      'vertical-thumbnail-small-height' => int 240
      'square-thumbnail' => string 'http://test.local/wp-content/uploads/2021/03/fox-1883658_1920.jpg' (length=65)
      'square-thumbnail-width' => int 360
      'square-thumbnail-height' => int 240

ファイルURL

String

ファイルID

int

Wysiwygエディタ

String

oEmbed

String

Gallery

選択肢

Select

Value

String

Label

String

Both(array)

array (size=2)
  'value' => string 'red' (length=3)
  'label' => string '赤' (length=3)

チェックボックス

Value

String

Label

String

Both(array)

array (size=2)
  0 => 
    array (size=2)
      'value' => string 'red' (length=3)
      'label' => string '赤' (length=3)
  1 => 
    array (size=2)
      'value' => string 'blue' (length=4)
      'label' => string '青' (length=3)

ラジオボタン

Value

String

Label

String

Both(array)

array (size=2)
  'value' => string 'red' (length=3)
  'label' => string '赤' (length=3)

Button Group

Value

String

Label

String

Both(array)

array (size=2)
  'value' => string 'red' (length=3)
  'label' => string '赤' (length=3)

真 / 偽

boolean

関連

Link

Link Array

array (size=3)
  'title' => string 'Hello world!' (length=12)
  'url' => string 'http://test.local/hello-world/' (length=30)
  'target' => string '_blank' (length=6)

Link URL

string

投稿オブジェクト

投稿オブジェクト

object(WP_Post)[5956]
  public 'ID' => int 1
  public 'post_author' => string '1' (length=1)
  public 'post_date' => string '2021-03-25 17:43:55' (length=19)
  public 'post_date_gmt' => string '2021-03-25 17:43:55' (length=19)
  public 'post_content' => string '<!-- wp:paragraph -->

<p>Welcome to WordPress. This is your first post. Edit or delete it, then start writing!</p>

<!-- /wp:paragraph -->' (length=139)
  public 'post_title' => string 'Hello world!' (length=12)
  public 'post_excerpt' => string '' (length=0)
  public 'post_status' => string 'publish' (length=7)
  public 'comment_status' => string 'open' (length=4)
  public 'ping_status' => string 'open' (length=4)
  public 'post_password' => string '' (length=0)
  public 'post_name' => string 'hello-world' (length=11)
  public 'to_ping' => string '' (length=0)
  public 'pinged' => string '' (length=0)
  public 'post_modified' => string '2021-08-01 14:51:07' (length=19)
  public 'post_modified_gmt' => string '2021-08-01 05:51:07' (length=19)
  public 'post_content_filtered' => string '' (length=0)
  public 'post_parent' => int 0
  public 'guid' => string 'http://test.local/?p=1' (length=22)
  public 'menu_order' => int 0
  public 'post_type' => string 'post' (length=4)
  public 'post_mime_type' => string '' (length=0)
  public 'comment_count' => string '1' (length=1)
  public 'filter' => string 'raw' (length=3)

投稿ID

int

ページリンク

1つのみ

string

複数許可

array (size=2)
  0 => string 'http://test.local/hello-world/' (length=30)
  1 => string 'http://test.local/sample-page/' (length=30)

関連

投稿オブジェクト

array (size=1)
  0 => 
    object(WP_Post)[5956]
      public 'ID' => int 1
      public 'post_author' => string '1' (length=1)
      public 'post_date' => string '2021-03-25 17:43:55' (length=19)
      public 'post_date_gmt' => string '2021-03-25 17:43:55' (length=19)
      public 'post_content' => string '<!-- wp:paragraph -->

<p>Welcome to WordPress. This is your first post. Edit or delete it, then start writing!</p>

<!-- /wp:paragraph -->' (length=139)
      public 'post_title' => string 'Hello world!' (length=12)
      public 'post_excerpt' => string '' (length=0)
      public 'post_status' => string 'publish' (length=7)
      public 'comment_status' => string 'open' (length=4)
      public 'ping_status' => string 'open' (length=4)
      public 'post_password' => string '' (length=0)
      public 'post_name' => string 'hello-world' (length=11)
      public 'to_ping' => string '' (length=0)
      public 'pinged' => string '' (length=0)
      public 'post_modified' => string '2021-08-01 14:54:22' (length=19)
      public 'post_modified_gmt' => string '2021-08-01 05:54:22' (length=19)
      public 'post_content_filtered' => string '' (length=0)
      public 'post_parent' => int 0
      public 'guid' => string 'http://test.local/?p=1' (length=22)
      public 'menu_order' => int 0
      public 'post_type' => string 'post' (length=4)
      public 'post_mime_type' => string '' (length=0)
      public 'comment_count' => string '1' (length=1)
      public 'filter' => string 'raw' (length=3)

投稿ID

array (size=2)
  0 => int 1
  1 => int 2

タクソノミー

タームオブジェクト

array (size=1)
  0 => 
    object(WP_Term)[5977]
      public 'term_id' => int 1
      public 'name' => string 'Uncategorized' (length=13)
      public 'slug' => string 'uncategorized' (length=13)
      public 'term_group' => int 0
      public 'term_taxonomy_id' => int 1
      public 'taxonomy' => string 'category' (length=8)
      public 'description' => string '' (length=0)
      public 'parent' => int 0
      public 'count' => int 1
      public 'filter' => string 'raw' (length=3)
      public 'meta' => 
        array (size=0)
          empty

タームID

array (size=1)
  0 => int 1

ユーザー

User Array

array (size=11)
  'ID' => int 1
  'user_firstname' => string '' (length=0)
  'user_lastname' => string '' (length=0)
  'nickname' => string 'test' (length=4)
  'user_nicename' => string 'test' (length=4)
  'display_name' => string 'test' (length=4)
  'user_email' => string 'dev-email@flywheel.local' (length=24)
  'user_url' => string 'http://test.local' (length=17)
  'user_registered' => string '2021-03-25 17:43:55' (length=19)
  'user_description' => string '' (length=0)
  'user_avatar' => string '<img alt='' src='http://0.gravatar.com/avatar/c2b06ae950033b392998ada50767b50e?s=96&#038;d=mm&#038;r=g' srcset='http://0.gravatar.com/avatar/c2b06ae950033b392998ada50767b50e?s=192&#038;d=mm&#038;r=g 2x' class='avatar avatar-96 photo' height='96' width='96' loading='lazy'/>' (length=273)

User Object

object(WP_User)[5976]
  public 'data' => 
    object(stdClass)[5982]
      public 'ID' => string '1' (length=1)
      public 'user_login' => string 'test' (length=4)
      public 'user_pass' => string '$P$B88uZTQ.33emZ/HN/Glst6BpYVNyJZ0' (length=34)
      public 'user_nicename' => string 'test' (length=4)
      public 'user_email' => string 'dev-email@flywheel.local' (length=24)
      public 'user_url' => string 'http://test.local' (length=17)
      public 'user_registered' => string '2021-03-25 17:43:55' (length=19)
      public 'user_activation_key' => string '' (length=0)
      public 'user_status' => string '0' (length=1)
      public 'display_name' => string 'test' (length=4)
  public 'ID' => int 1
  public 'caps' => 
    array (size=1)
      'administrator' => boolean true
  public 'cap_key' => string 'wp_capabilities' (length=15)
  public 'roles' => 
    array (size=1)
      0 => string 'administrator' (length=13)
  public 'allcaps' => 
    array (size=73)
      'switch_themes' => boolean true
      'edit_themes' => boolean true
      'activate_plugins' => boolean true
      'edit_plugins' => boolean true
      'edit_users' => boolean true
      'edit_files' => boolean true
      'manage_options' => boolean true
      'moderate_comments' => boolean true
      'manage_categories' => boolean true
      'manage_links' => boolean true
      'upload_files' => boolean true
      'import' => boolean true
      'unfiltered_html' => boolean true
      'edit_posts' => boolean true
      'edit_others_posts' => boolean true
      'edit_published_posts' => boolean true
      'publish_posts' => boolean true
      'edit_pages' => boolean true
      'read' => boolean true
      'level_10' => boolean true
      'level_9' => boolean true
      'level_8' => boolean true
      'level_7' => boolean true
      'level_6' => boolean true
      'level_5' => boolean true
      'level_4' => boolean true
      'level_3' => boolean true
      'level_2' => boolean true
      'level_1' => boolean true
      'level_0' => boolean true
      'edit_others_pages' => boolean true
      'edit_published_pages' => boolean true
      'publish_pages' => boolean true
      'delete_pages' => boolean true
      'delete_others_pages' => boolean true
      'delete_published_pages' => boolean true
      'delete_posts' => boolean true
      'delete_others_posts' => boolean true
      'delete_published_posts' => boolean true
      'delete_private_posts' => boolean true
      'edit_private_posts' => boolean true
      'read_private_posts' => boolean true
      'delete_private_pages' => boolean true
      'edit_private_pages' => boolean true
      'read_private_pages' => boolean true
      'delete_users' => boolean true
      'create_users' => boolean true
      'unfiltered_upload' => boolean true
      'edit_dashboard' => boolean true
      'update_plugins' => boolean true
      'delete_plugins' => boolean true
      'install_plugins' => boolean true
      'update_themes' => boolean true
      'install_themes' => boolean true
      'update_core' => boolean true
      'list_users' => boolean true
      'remove_users' => boolean true
      'promote_users' => boolean true
      'edit_theme_options' => boolean true
      'delete_themes' => boolean true
      'export' => boolean true
      'copy_posts' => boolean true
      'edit_custom_css' => boolean true
      'read_custom_css' => boolean true
      'delete_custom_css' => boolean true
      'edit_custom_csss' => boolean true
      'edit_others_custom_csss' => boolean true
      'publish_custom_csss' => boolean true
      'delete_custom_csss' => boolean true
      'delete_published_custom_csss' => boolean true
      'delete_others_custom_csss' => boolean true
      'edit_published_custom_csss' => boolean true
      'administrator' => boolean true
  public 'filter' => null
  private 'site_id' => int 1

User ID

int

jQuery

Googleマップ

array (size=4)
  'address' => string '' (length=0)
  'lat' => int 0
  'lng' => int 0
  0 => string '' (length=0)

デイトピッカー

d/m/Y

String 01/08/2021

Date Time Picker

01/08/2021 6:13 pm String

string ’01/01/1970 12:00 am’

Time Picker

6:14 pm g:i a

string ’12:00 am’

カラーピッカー

string ‘#ffffff’

レイアウト

メッセージ

Accordion

Group

タブ

Repeater

Flexible Content

Clone

Primary Sidebar

世界で一番利用されているWordPressテーマ

Divi WordPress Theme
レビューを見る

あなたの悩みは?

WordPress
セキュリティ
WordPress
トラブル
アクセスアップアフィリエイト
おすすめASP

最新ニュース

  • 【カラフルボックス】夏のキャンペーン実施中【2021年8月31日まで】

最近の投稿

  • WordPressでおすすめのバックアッププラグイン5選
  • WordPressのPHP設定を変更する方法(php.ini)
  • WordPressでおすすめの画像圧縮プラグイン5選
  • WordPressの投稿編集画面でその投稿を表示する方法
  • WordPressの管理画面に再利用ブロックの管理を追加する方法

カテゴリー

  • WordPress
  • お役立ち情報
  • アフィリエイト
  • ドメインレジストラ
  • レンタルサーバー
    • ColorfulBox
    • Conoha WING
    • mixhost
    • さくらのレンタルサーバー
    • エックスサーバー
    • エックスフリー
    • ロリポップ!
  • 便利ツール
WordPress学習方法
トップページへ

プライバシーポリシー|お問い合わせ
Copyright © 2023 FOXWP All rights reserved.