SlideShare a Scribd company logo
1 of 28
Download to read offline
カスタム投稿タイプでお菓子メー
カーを登録して今日食べたお菓子に
ひもづけるには?

鳥山優子
2 /28

プロフィール

• 株式会社ベクター
企画・デザイン部

• WordPress歴 5年
• 公式ディレクトリで公開
• テーマ
• プラグイン

•いままでに食べたお菓子

2273種
アジェンダ

1.
2.
3.
4.
5.
6.

3 /28

お菓子メーカーの一覧を作る
投稿画面でお菓子メーカーを参照
ブログ上でお菓子メーカーを表示
お菓子メーカーの一覧を表示
お菓子メーカーの詳細ページ
課題
4 /28

1.お菓子メーカーの一覧を作る
1.お菓子メーカーの一覧を作る

お菓子ブログに必須

お菓子
メーカー
の情報

5 /28
6 /28

1.お菓子メーカーの一覧を作る

. 
ǜǞኃǞ
. 
ǜǞኃǞ. ం

カスタム
投稿タイプ
でやってみる

$.Ǘ....
ǜኗእǞ. ੫.Ǘ....
ǜኗእǞ. ੫
ቺǞኃቼኜአǞኊ.ܲ
1.お菓子メーカーの一覧を作る

ダッシュボードに
投稿タイプが追加される

7 /28
1.お菓子メーカーの一覧を作る

新規登録画面

8 /28

タイトル
1.お菓子メーカーの一覧を作る

9 /28

カスタムフィールドを使うには?
ふりがな

URL
1.お菓子メーカーの一覧を作る

Advanced Custom Fields

10 /28
1.お菓子メーカーの一覧を作る

お菓子メーカーの一覧が完成

11 /28
12 /28

2.投稿画面でお菓子メーカーを参照
2.投稿画面でお菓子メーカーを参照

投稿を関連付けるプラグイン

13 /28
2.投稿画面でお菓子メーカーを参照

Advanced Custom Fields

・導入が簡単
・関連付け候補の投稿タイプを指定
・候補の検索UI
・カスタムフィールドに保存される
(ただしシリアライズ化)

14 /28
2.投稿画面でお菓子メーカーを参照

フィールドグループを追加

15 /28
2.投稿画面でお菓子メーカーを参照

16 /28

カスタム投稿
タイプを
関連付ける
17 /28

2.投稿画面でお菓子メーカーを参照

投稿画面
お菓子
メーカーを
検索

選択
18 /28

3.ブログ上でお菓子メーカーを表示
3.ブログ上でお菓子メーカーを表示

ACFの関数を使って表示

SKS PBSRVWV
JHWBILHOG
PDNHU
LI
PBSRVWV
LVBDUUD
PBSRVWV
IRUHDFK
PBSRVWV DV S

!
D KUHI SKS HFKR JHWBSHUPDOLQN
JHWBWKHBWLWOH
S!,'  !D!
SKS
HQGIRUHDFK
HQGLI !

,'




S!,'

 ! !SKS HFKR

19 /28
3.ブログ上でお菓子メーカーを表示

お菓子
メーカー

20 /28
21 /28

4.お菓子メーカーの一覧を表示
4.お菓子メーカーの一覧を表示

22 /28

ኃኋǚǜ½Ďǚቼኝ.ቺǞኃቼኜ

.

ኃኒኆኪǞ.ቺǞኃቼኜ
..$.Ǘ. 

ページ
タイトル
23 /28

4.お菓子メーカーの一覧を表示

ኃኋǚǜ½Ďǚቼኝ.ቺǞኃቼኜ
. 
ǜǞኃǞ.ቡǗ..ቲ

. 
ǜǞኃǞቲ

੫

.. .ቺǞኃቼኜ
੫

投稿一覧
4.お菓子メーカーの一覧を表示

24 /28
25 /28

5.お菓子メーカーの詳細ページ
5.お菓子メーカーの詳細ページ

.

...

検索条件
meta_query
でLIKE



ǛኩǜǞǚቲջ

.ካǞኝ

26 /28

è

.½Ď
27 /28

5.お菓子メーカーの詳細ページ

お菓子メーカ
に関連する
投稿
28 /28

*投稿タイプを関連づけるのに最適な方法は?
*おすすめプラグインは?
*自分で作ったほうがよいのか?
*カスタム投稿タイプの使い方は?
*検索対象とするならば、
お菓子メーカーはどのようなデータに
持つべきか?

5.課題

More Related Content

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

カスタム投稿タイプでお菓子メーカーを登録して今日食べたお菓子にひもづけるには?