Creating Custom Post Types With Advanced Custom Fields

  Рет қаралды 39,269

David McCan

David McCan

Жыл бұрын

You can now create Custom Post Types and taxonomies using ACF. In the video we create two Custom Post Types with a relationship field linking them, a custom taxonomy, and add custom fields. We then turn the relationship field into a bidirectional relationship.
Advanced Custom Fields - wordpress.org/plugins/advance...
Bidirectional code docs and snippet: www.advancedcustomfields.com/...
Text version of the video on the WebTNG website - www.webtng.com/creating-custo...

Пікірлер: 40
@sidikvideos
@sidikvideos Жыл бұрын
Great tutorial! I like also the very relaxing tone of your voice.
@TheKinderCookiePress
@TheKinderCookiePress Ай бұрын
This is helpful! Thank you for the detailed walkthrough.
@ekcelhenrichekoumelong4457
@ekcelhenrichekoumelong4457 11 ай бұрын
Thank you for your work. That was incredible!!
@HaifengZhu-pn3uq
@HaifengZhu-pn3uq 10 ай бұрын
Very helpful, it's so detailed
@andreadant
@andreadant Жыл бұрын
Really interesting and useful! Thanks
@fabiano8888
@fabiano8888 Жыл бұрын
Hello, David! Thank you for the excellent content that you provide on your channel. I really appreciate your work, and I am looking forward to seeing more videos on ACF. I have noticed that most of the videos on KZfaq are tailored to Elementor, which doesn't interest me.
@HSRehman
@HSRehman Жыл бұрын
A quality content, thank you
@lazlo342
@lazlo342 9 ай бұрын
Thanks so much. Excellent tutorial. Clear and concise. I just spent an hour watching a different tutorial that was trying to explain the same features but the author was not a native English speaker and it was pretty much impossible to follow his broken English when he would omit important key words.
@DavidMcCan
@DavidMcCan 8 ай бұрын
Glad it helped!
@whitneylee33
@whitneylee33 2 ай бұрын
Very helpful, thank you!
@california_ray
@california_ray Жыл бұрын
I love your videos. period.
@DavidMcCan
@DavidMcCan Жыл бұрын
Thank you for the kind words.
@AthloneH
@AthloneH Жыл бұрын
Thank you for the video David, always helpful. How about a Metabox vs ACF showdown now that they both have CPT abilities? 😉
@nicolaskeith8945
@nicolaskeith8945 4 ай бұрын
Hey Dave, great video. Question: wouldn't book authors be a taxonomy?
@stevebaker2896
@stevebaker2896 Жыл бұрын
Great video David - what did you use to generate the Lorem Ipsum in the dropdown please? Looks like it came from your menu bar?
@DavidMcCan
@DavidMcCan Жыл бұрын
A browser extension called "Lorem Ipsum Generator". There are several of them in the extension store. I guess these days I should be using AI to create something more real like. 😀
@AvaneeshKumarSingh
@AvaneeshKumarSingh Жыл бұрын
Hi David, Can we have an ACF vs ACPT comparison video with all new features of both the tools?
@captusn7838
@captusn7838 12 күн бұрын
Would like to understand how to use a number field or Text field for Addresses which are numberic and text. ACF said I could use only one. What's up?
@andreadant
@andreadant Жыл бұрын
David, thank you for the tutorial, could you tell me specifically what that "Hierarchical" function is for at 10:00? Im a beginner and noticed that without this option my cpt archive template give me a 404 error. While if I activate this function it's ok. Thank you
@DavidMcCan
@DavidMcCan Жыл бұрын
When it is hierarchical it is like categories and when it is not it is like tags. Perhaps you have an archive for categories and not tags or when you created the archive you added a field to output for one and not the other?
@ericgauvin7681
@ericgauvin7681 Жыл бұрын
Thanks for this info. Very useful. I'm planning on using Formidable Forms to do frontend CRUD for s business directory. It can save entries as CPT, which I am planning to create somehow--ACF looks great. Formidable also has views for displaying on the front end. I want to use a CPT because I'm planning to use FacetWP for filtering on the front end, which requires a CPT. I want the listing owners to be able to categorize etc for searching on the front end. Any advice on this would be appreciated? I'm getting a little confused figure out how it will all fit together, but I don't think it should be super complex.😃
@DavidMcCan
@DavidMcCan Жыл бұрын
Using Custom Post Types makes sense. The easiest way to make facets is using Categories and tags. Those are usually the default sources for the filters. You can use custom fields for the filters, but that is more advanced. Hope that helps.
@MarkoKozlica
@MarkoKozlica 3 ай бұрын
Hello! Thank you for your tutorial. I have noticed that select fields have the search option when creating a new post. I have tried to enable it using the Stylized UI option but it still does not show up when creating new custom post. Help? :D thx
@user-en8ld5td1b
@user-en8ld5td1b Жыл бұрын
Hi David! Thanks for the video, you just saved my work haha! I want to ask you if there's a way for listing in the autor's page the books just by that author, and when i click on another author, the same, see only the books of that author. Thanks again for the video!
@DavidMcCan
@DavidMcCan Жыл бұрын
Yes, it is called the author archive. When you create your front-end templates you'd create one called author.php, or it will use the archive.php if that doesn't exist. If you are using a page builder then check its archive options. If you are creating a custom one then you can use the posts block or the query loop or whatever of that type of block and instead of category you filter by author. In the post meta you make the author's name a link.
@dannykirk2917
@dannykirk2917 5 ай бұрын
Hi love the video very well put together. One question I have is how do you remove the post type key from the url slug. I could do this very easily in CPTUI? Thanks Danny
@dannykirk2917
@dannykirk2917 5 ай бұрын
I have managed to sort it thanks Danny
@HaifengZhu-pn3uq
@HaifengZhu-pn3uq 10 ай бұрын
hi, I want to create one custom field in my post to use it in Dynamic Content, shall I do this with Custom Post Type UI or Advanced Custom Fields?
@DavidMcCan
@DavidMcCan 10 ай бұрын
Advanced Custom Fields. You don't need CPT-UI any more.
@mikethefunkmorales
@mikethefunkmorales 2 ай бұрын
Your tutorial is extraordinary, I only have a question: how would you make the permalink show the category to which the book belongs? Did you make a taxonomy called Generate?
@DavidMcCan
@DavidMcCan 2 ай бұрын
There was a taxonomy called Genre. The show on the right side in the editor.
@mikethefunkmorales
@mikethefunkmorales 2 ай бұрын
@@DavidMcCan Thanks for responding but what I mean is that in the natural section of WP which is POST, and when you select that category under the Title your route appears including the taxonomy of the selected category. In the case of CPT, by nature, that permalink does not appear under the title and when you select your Gender category, the url does not contain said category and that is exactly what I need to know if it is possible for the CPT from the plugin to do that. I solved that using a permalink code from the wordpress core. But the ideal is for the ACF Pro to do it.
@DavidMcCan
@DavidMcCan 2 ай бұрын
@@mikethefunkmorales - So for the permalink. I haven't tried it, but the docs mention that you can specify a custom slug. On this page under PERMALINK REWRITE: www.advancedcustomfields.com/resources/registering-a-custom-post-type/
@Outlanderwow
@Outlanderwow Жыл бұрын
Lat update lost me... So many changes I cant catch up :/
@DavidMcCan
@DavidMcCan Жыл бұрын
Sorry to hear that. There have been a lot of changes. Many, but not all, can be ignored -- you can keep using CPT-UI, for instance, if you want to.
@HaifengZhu-pn3uq
@HaifengZhu-pn3uq 9 ай бұрын
hi, I have already created custom post type, how can I add categories to the custom post type
@DavidMcCan
@DavidMcCan 8 ай бұрын
If you created the Custom Post Type using ACF, then you can use it to create the custom taxonomy also. The video show that.
@HaifengZhu-pn3uq
@HaifengZhu-pn3uq 7 ай бұрын
@@DavidMcCan hi, I have created one taxonomy, how can I add sub-taxonomy under this taxonomy?
@DavidMcCan
@DavidMcCan 7 ай бұрын
Set it as being hierarchal.
Kraft Theme Builder Preview
14:33
David McCan
Рет қаралды 2 М.
Homemade Professional Spy Trick To Unlock A Phone 🔍
00:55
Crafty Champions
Рет қаралды 57 МЛН
Универ. 13 лет спустя - ВСЕ СЕРИИ ПОДРЯД
9:07:11
Комедии 2023
Рет қаралды 6 МЛН
Неприятная Встреча На Мосту - Полярная звезда #shorts
00:59
Полярная звезда - Kuzey Yıldızı
Рет қаралды 6 МЛН
Василиса наняла личного массажиста 😂 #shorts
00:22
Денис Кукояка
Рет қаралды 9 МЛН
Enhancing Large Language Models through Low-Rank Adaptation
51:37
TensorFlow User Group Islamabad
Рет қаралды 9
Unlocking the full potential of WordPress with Custom Post Types and Custom Fields
18:06
BuildingOnWordPress (with Josh Donnelly)
Рет қаралды 3,1 М.
What are Custom Post Types?
7:33
WP Minute - Learn WordPress
Рет қаралды 56 М.
Create a directory using Elementor, ACF & CPT UI
32:02
Elementor
Рет қаралды 102 М.
Improve Advanced Custom Fields With These 5 FREE Plugins
16:45
Comparing ACF vs Meta Box Performance
32:07
David McCan
Рет қаралды 2,6 М.
Qual Fita NÃO vai Me AGUENTAR😱 #shorts
0:45
Lucan Pevidor
Рет қаралды 15 МЛН
English or Spanish?
0:13
ARGEN
Рет қаралды 8 МЛН
WHO LOVES ICE CREAM?
0:23
dednahype
Рет қаралды 6 МЛН
это самое вкусное блюдо
0:12
Katya Klon
Рет қаралды 1,7 МЛН