Create Reusable Template Parts in WordPress | Meta Box Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ค. 2024
  • Sometimes you need to display the same information with the same layout as well, but in different places. Instead of storing and getting that data several times, today we are going to use MB Views to create template parts, then include them in multiple templates for reusable purposes.
    Read more about it here: metabox.io/mb-views-creating-...
    #tutorial #meta_box #WordPress #custom_fields #reusable #template parts
    -----------
    0:00 Intro
    1:30 Before Getting Started
    2:30 Create a Custom Post Type
    2:54 Create Custom Fields
    4:39 Create a Template Part
    5:57 Include the Template Part into a Singular Page
    7:45 Make Changes for the Template Part
    9:02 Include the Template Part into an Archive Page
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @eucalyptech
    @eucalyptech 2 หลายเดือนก่อน

    Thank you Meta Box team, I didn't realize that MB Views can also be used as a templating system !

    • @MetaBoxWP
      @MetaBoxWP  2 หลายเดือนก่อน +1

      We will improve it for more features ^^

  • @Andy-vh3ns
    @Andy-vh3ns 2 หลายเดือนก่อน

    Another fantastic tutorial of a real world example .. many thanks folks. Keep me coming. =)

  • @fathnojoum
    @fathnojoum 2 หลายเดือนก่อน

    Please make a tutorial on how to add Dynamic Pricing for Woocommerce with Meta Box, for example a case study on a car rental website where there are daily, weekly or monthly rental prices. thank you.

    • @MetaBoxWP
      @MetaBoxWP  2 หลายเดือนก่อน

      Hi, as I understand your suggestion, you can use Attributes and Variations which are supported by Woo to set. For example: when a visitor clicks on Daily: the price will be $20, Weekly will be $120. Is it your request?

    • @fathnojoum
      @fathnojoum 2 หลายเดือนก่อน

      @@MetaBoxWP That's what I mean, I've tried it but how can the daily and weekly price fields appear in the side position of the edit product menu?

    • @MetaBoxWP
      @MetaBoxWP  2 หลายเดือนก่อน

      Normally, the price will be displayed under the product name. And now, do you want to display it beside the product information?

  • @Jabe64
    @Jabe64 2 หลายเดือนก่อน

    Thanks for this tutorial. Is it possible to use FSE Theme and the new Block Bindings API from WordPress 6.5. Is it possible with MetaBox now that block.json is supported? Or when will it be possible?

    • @MetaBoxWP
      @MetaBoxWP  2 หลายเดือนก่อน +1

      MB Blocks supports creating blocks using block.json file. We have an article about it: metabox.io/mb-blocks-register-block-using-json-file/. It's also compatible with FSE templates now. We hope you like it.

    • @MetaBoxWP
      @MetaBoxWP  2 หลายเดือนก่อน +1

      You can join our Facebook group to get the newest updates, as well as discuss topics, issues, and suggestions: facebook.com/groups/153766748574311

    • @Jabe64
      @Jabe64 2 หลายเดือนก่อน

      @@MetaBoxWP Perfect 👌 Thanks a lot for the amazing work 👏