Create Custom Post Types and Custom Fields Without a Plugin, and display them with GenerateBlocks

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ม.ค. 2025

ความคิดเห็น • 32

  • @EricThomson
    @EricThomson ปีที่แล้ว +1

    This is the best instruction I have found to do this. Thanks man!

  • @AndreuMoreno
    @AndreuMoreno 6 หลายเดือนก่อน

    this is pure gold! I had been looking for doing this for a long time...

  • @bilimlink
    @bilimlink 2 ปีที่แล้ว +2

    Another great video for WP designers.
    Thanks Bro! 😊

  • @interculturalcommunication3889
    @interculturalcommunication3889 2 ปีที่แล้ว +2

    Terrific video! You just earned a new subscriber. Please keep the helpful content coming ~

    • @thisweblabvideos
      @thisweblabvideos  2 ปีที่แล้ว +1

      Awsome. Have more ideas for vides then time to do them. But will post as I can. Glad you found this usefull.

  • @om78692
    @om78692 2 ปีที่แล้ว +1

    this is gold for free....loved it and subscribed there is lot of value in what you have shown us thanks......

  • @bertinamacaulay7815
    @bertinamacaulay7815 2 ปีที่แล้ว +2

    Thank you for this video! Better late than never. Will save me a bunch of time from this point on!!!

  • @jmotaes
    @jmotaes 2 ปีที่แล้ว +1

    Thanks from Brazil!

  • @Klaus53123
    @Klaus53123 2 ปีที่แล้ว +3

    Probalbly also for me a very helpful video as I need to set up custom post types in my WP installation.
    However: 2 questions I have.
    1. Will those files survive an update of GP or is the use of a Child Theme obligatory?
    2. What is the software you use to dump and generate the additonal files into your webspace? I am so far using FileZilla and I am not aware the FZ can do all this.
    Sorry if those questions are a bit silly..... I am by far not a specialist on this.
    Thanks man
    Klaus

    • @thisweblabvideos
      @thisweblabvideos  2 ปีที่แล้ว +1

      In this video the demo site is local. So file i drop in folder i am dropping using normal file manager on my computer. When I ftp, I also use filezilla.
      Code editor is sublime text. If I remember correctly I am not using a child theme in this video but an mu-plugin. This is best practice for non design related functionality such as custom posts and fields. Mu plugins have nothing to do with themes and do not get any automatic updates ... so they are safe for sure.

    • @ahmadhusain9075
      @ahmadhusain9075 ปีที่แล้ว

      @@thisweblabvideos.

  • @husekogo1305
    @husekogo1305 ปีที่แล้ว +1

    Great video mate !
    Quick Question; is it better place the code in a custom plugin (as you did) OR can i use a child theme? (note: i will have multiple different cpt & cfs)

    • @thisweblabvideos
      @thisweblabvideos  ปีที่แล้ว +1

      when the code is not related to design, then its preferable in the plugin. why? because then it must be related to the structure of the site, or the content. so later, if you change the theme, that remains unaffected.

    • @husekogo1305
      @husekogo1305 ปีที่แล้ว

      @@thisweblabvideos thanks for the rapid reply.

  • @naotofuruya2448
    @naotofuruya2448 11 หลายเดือนก่อน

    hi there,
    Thank you for useful idea about custom fields.
    this is the best I want it.
    but something error on my WP.
    After saving php (Time 9:53), my WP has got an error.
    I can't even login...
    (it can fix it from FTP. but I don't know what happened on my WP)

    • @thisweblabvideos
      @thisweblabvideos  11 หลายเดือนก่อน +1

      I mean, you have some php error somewhere in the file. I cannot begin to guess which one, find the error, redo the code ...
      Also do not code php on a live site.

    • @naotofuruya2448
      @naotofuruya2448 11 หลายเดือนก่อน +1

      @@thisweblabvideos oh my goodness, Thank you for replying early.
      Making php file is fine, I can see the plugin at the dashboard.
      but second paste and save it, then WP got down....
      (I also don't understand that why plugin file refuses to login??)
      I just wondering. Could you touch MetaBox Generator again?
      your video is made 1 year ago. and now, MetaBox Generator seems that it make different code.
      (I stop your video, and compare with mine. example there is "

    • @naotofuruya2448
      @naotofuruya2448 11 หลายเดือนก่อน +1

      @@thisweblabvideos hi, I got resolved.
      case'xxx': instead of default:
      insert break; per switch
      I think PHP version 8.1 says this error.

  • @ahmadhusain9075
    @ahmadhusain9075 ปีที่แล้ว

    Thank you so much sir ❤️❤️
    I have 2 questions, first, how i make a multiple meta box field??
    2 - could i show this meta box field using Elementor? Like what i can do in ACF fields?
    Thank you 🖤❤️

    • @thisweblabvideos
      @thisweblabvideos  ปีที่แล้ว

      Hi, thanks for viewing. What is a "multiple metabox field"? Regarding other question, I don't use elementor, but it should work same like acf fields, just refer to the field same way you do with acf.

  • @haikelareff
    @haikelareff ปีที่แล้ว

    can anyone please include also how u guys use sort of external software to do this? Why the need to use external software? why cant just do everything in wordpress?? please im so tired to display a simple custom field text

    • @thisweblabvideos
      @thisweblabvideos  ปีที่แล้ว +1

      What do you mean by "inside wordpress"? This is wp code, only written a bit faster using a web app code generator. Cpt and custom fields code is really standardized and formulaic. In such cases we are best to generate such code instead of writing it. You write code that needs creative thinking, code that is almost entirely the same each time ... just generate. Thats my perspective.

  • @birdview5378
    @birdview5378 ปีที่แล้ว

    Too stupid to get this right. :-( Seems like my pages are going nowhere. How do I tell Wordpress that the files need to sit in a certain database?

    • @thisweblabvideos
      @thisweblabvideos  ปีที่แล้ว

      Can you please try to explain which part you did, and what did not work?

  • @badcatdesign
    @badcatdesign 2 ปีที่แล้ว

    All about Bornholm. 😂

    • @thisweblabvideos
      @thisweblabvideos  2 ปีที่แล้ว

      🤔

    • @thisweblabvideos
      @thisweblabvideos  2 ปีที่แล้ว +1

      Oh, now I got it, the movie title :D :D :D

    • @badcatdesign
      @badcatdesign 2 ปีที่แล้ว +1

      @@thisweblabvideos Super useful tutorial though - thank you.