Using Advanced Custom Fields And Custom Post Types Together The Right Way

Поделиться
HTML-код
  • Опубликовано: 3 дек 2024

Комментарии • 46

  • @WPCasts
    @WPCasts  5 лет назад +6

    I hope you learned something!
    Don't forget to subscribe: ruclips.net/channel/UC8eV_x9GaQhcoL4rexOJpXg

  • @boxingtone
    @boxingtone 5 лет назад +5

    Awesome!
    You do the absolute best ACF tutorials.

    • @WPCasts
      @WPCasts  5 лет назад +1

      Thank you! I appreciate that :)

  • @nicolaskeith8945
    @nicolaskeith8945 3 года назад +1

    Is this still the way to go about managing this type of data, Alex? Asking, because the video is 2 years old now. Thanks!

  • @Uhohd
    @Uhohd 3 года назад

    Cheers for these tuts on WP, ACF and CPTs :)

  • @stevenlee8256
    @stevenlee8256 4 года назад +2

    Nice video. Can you give me a direction .
    I have a woocommerce store sell different kind of electrical devices , now I registered a CPT called parts, I want to output a camera parts list (normal have 5-10 parts ) in my single product called camera (the parts list are almost similar fields in your CPT toaster, have basic fields of image thumbnail, price , dimension , weight , etc.) Now my question is can I use a ACF post object to product , or Is it possible to add a ACF relationship field to the product , and select the toaster then output it in a similar way as you showing use a post object?

  • @joelnacionales3677
    @joelnacionales3677 3 года назад

    Always know what i need thank you men keep it up

  • @davidbrabyn1
    @davidbrabyn1 4 года назад +3

    Any tips on editing the toaster specs with this ACF+CPT setup but without having to open each toaster page in the admin, i.e. in the Toaster CPT list page (the one with the Quick Edit functionality - not sure of proper name). Thx

    • @tomd8019
      @tomd8019 3 года назад

      I use WP All Export/WP All Import for this.

  • @RichardLaya.
    @RichardLaya. 3 года назад

    Thanks! very helpful, nice video.

  • @Prochandler
    @Prochandler 3 года назад

    This video is great but the craziest thing I learned from this was at 7:30 when he somehow selected and edited 7 of the same functions by doing some weird select feature on his computer. How did you do it?!

  • @joshuamayo3546
    @joshuamayo3546 3 года назад +1

    You have no idea how much this has helped me. I CANNOT thank you enough! Also, where can I find the Toastosterone?? :D

  • @pawelkieryk
    @pawelkieryk 4 года назад +1

    Awesome content, keep going man! :)

  • @sanaansari3935
    @sanaansari3935 3 года назад

    How do we display the post object that we selected on frontend using elememtor pro?
    Acf field key is not showing for post objects

  • @HaifengZhu-pn3uq
    @HaifengZhu-pn3uq Год назад

    I want to create one custom field for my posts so that I can use this in dynamic content, in this case shall I use Advanced Custom Fields or Custom Post Types?

  • @obiesilva
    @obiesilva 2 года назад

    Hello, I want to do the same thing but display the ACF fields from a CPT to a regular template page. Can I do this?

  • @federico.carucci
    @federico.carucci 4 года назад

    Good job! A very nice trick with ACF and Gutenberg. Thanks!

  • @nicolaskeith8872
    @nicolaskeith8872 4 года назад +2

    But now you have the URL going to site.com/toasters/ -- what if you don't want that? What if you're only using CPT to organize data in the way you're describing?
    Please reply, if you have a second. Thank you.

    • @asht2058
      @asht2058 4 года назад

      I want to know the same

    • @nicolaskeith8872
      @nicolaskeith8872 4 года назад +2

      @@asht2058 Ash, you can specify the CPT as "not public" when setting it up.

    • @asht2058
      @asht2058 4 года назад

      Thanks,​@@nicolaskeith8872

  • @ahmedmusawir
    @ahmedmusawir 5 лет назад +6

    Simply AWESOME!! (the volume is too low though ... :-)

    • @WPCasts
      @WPCasts  5 лет назад

      Thanks for the feedback, i'll keep an eye on the audio levels :)

  • @rspaulding
    @rspaulding Год назад

    Are there ways of doing this without having to edit the php file?

  • @DogTog
    @DogTog 5 лет назад +1

    Is this part 2 of another post, or perhaps the wrong video was uploaded?? It starts with some sort of plug in for toasters already installed, you can even see "Toasters" already in the left panel menu. Then it shows content for toasters already entered in a post, with a special format without explaining where that came from. Very confusing. Obviously starts in the middle of something.

    • @WPCasts
      @WPCasts  5 лет назад

      The tutorial assumes you’re familiar with Custom Post Types and Advanced Custom Fields. The “Toasters” in the left panel menu is a Custom Post Type and the post with the special format is made by Advanced Custom Fields.

    • @DogTog
      @DogTog 5 лет назад

      @@WPCasts Ok, so you're using some special plug-ins or theme? That might be a good thing to mention in the video description.... but it still seems like this a part 2 and there is a part 1 that describes what the setup is here. Custom Fields is available on the add/edit screen of posts and pages, but it doesn't put things on the left admin panel, unless there is a way to do that which hasn't been mentioned yet.

    • @DogTog
      @DogTog 5 лет назад

      @@WPCasts Ok, so I added Advanced Custom Fields and added a Custom post Type, and it did not appear in the left column as seen in your video. So your setup is something different from a normal install.

    • @WPCasts
      @WPCasts  5 лет назад

      Email me and we'll get it figured out for you. You can find my email here: ruclips.net/channel/UC8eV_x9GaQhcoL4rexOJpXgabout

  • @afflictionmarketing5303
    @afflictionmarketing5303 3 года назад

    Can you please make a tutorial on how to add relational custom field without any plugin??

  • @jeanparacelse
    @jeanparacelse 4 года назад

    Why did you keep the same HTML that you had for "toaster_specs" in the code? You duplicated the same HTML in toaster_specs_automatic but still keep the old one in the code. I don't understand why.

  • @johnmbaye
    @johnmbaye 4 года назад

    Maybe it's now better to use ACF Etended rather than CPT UI. It create also CTP, Taxonomy, but adding also many options wish are also linked to acf. For ex Json save.

    • @nicolaskeith8945
      @nicolaskeith8945 3 года назад

      It's all the same. You can use Pods as well, which comes even more fleshed out.

  • @Prochandler
    @Prochandler 3 года назад

    As I'm going through this exercise, I noticed that one con to this method is that you'll be creating an individual page for each toaster (or whatever post you're making). Is there a way to use a new post type as only a place to store the data without creating an accessible URL for it?

    • @vecseiszilveszter4672
      @vecseiszilveszter4672 3 года назад

      you can change that when you create the post type, you have arguments to disable creating pages with url. In WP everything is a post type, but not every post type is a page/post with url. Sam goes for CPT.

    • @nicolaskeith8945
      @nicolaskeith8945 3 года назад

      Yeah, when you're setting up the CPT, there's an option not to create a linkable URL for it, but only have it act as the product type you want to display in posts.

  • @billwoods4935
    @billwoods4935 4 года назад

    Hey, first, thank you for your great tutorials, I really appreciate it. I've been struggling with rewrite api concept!!!! I haven't been able to find a decent tutorial on that subject till a couple of days ago that I stumbled upon a youtube video called "Rewrite API: Setting Custom Permalink Structures for Custom Post Types". It is one of the best tutorials/talks on rewrite api for CPT, but the individual doing the presentation is going through a lot of materials too fast! I wish there were more detailed tutorial on that subject on youtube.
    I am wondering if it's possible for you to make a tutorial on that subject going a little bit more in depth?
    Thanks, I appreciate it!

    • @WPCasts
      @WPCasts  4 года назад

      I'll put that subject on my list of topics to cover :)

    • @billwoods4935
      @billwoods4935 4 года назад

      ​@@WPCasts Thank you sir. I appreciate it.

  • @gstcy7925
    @gstcy7925 5 лет назад

    Thanks!

  • @TechTalkReview
    @TechTalkReview 5 лет назад +3

    It would be much appreciated if you could teach this kind of thing using Elementor Pro for non-coders or end users. I know Elementor has a lot of constraints. But at least can you show all related example codes for me to follow through this? Can I easily implement the code in templates using Elementor Pro? Thanks!

  • @jlambert12013
    @jlambert12013 4 года назад

    I would have liked this video so much more if it was “Shirts” or “Car”