GeneratePress - Accessing Custom Field Values in Block Elements

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

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

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

    Great work.
    I'd love to see a cheatsheet for the predefined WordPress meta names - eg Adding a dynamic background that uses the Post Avatar

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

    Does this method work with custom fields created in 3rd party plugins like ACF and Metabox?

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

      Yes, it works!

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

      I've noticed, however, that if you're using a different database table other than the native wp_postmeta to store your post metadata, accessing a field's value as shown in the video won't work. I've tested this using MB Custom Table (MetaBox), and while I haven't tested with its ACF's counterpart ACF Custom Database Tables, I'm guessing it's not going to work either. Perhaps someone can prove me wrong? Cheers

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

    how to access post object value?

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

    What is the link to the PHP video you mentioned in this video?

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

      Just added in the description. Thanks for pointing that out!

  • @VHighOnCarbs
    @VHighOnCarbs 8 หลายเดือนก่อน

    please turn off ads