How to use custom fields in bricks

Hi
I’ve installed dokan pro and so many fields added to the usermeta table. Iwant to show some of the data at frontend using bricks dynamic tag!

For example i want to show the store name (“Dokan_store_name”) and the banner image of the store (dokan_banner)
How can i do that?

Thank you :pray:

{cf_my_field_name} will get wp native fields. You may need to check Dokan docs for how they store the data. If it’s standard WP CF, should be simple.

1 Like

Thank you, Can you explain more? Or show me how to output the store name or other data?

I’ve never heard of Dokan before your post, so probably not. A cursory glance at their docs suggests their data is indeed stored as simple meta - meaning they can be fetched as any other WP meta:

So if you read the first link I left, and the second, you should be able to piece it together.

In essence… a user filed is fetch thus:

get_post_meta( $post->ID, 'address_field', true ); 

To fetch this in Bricks, you would have a Query on a block, to fetch users. Then a basic text (or headline etc.) with the tag in it {cf_address_field}

I suggest some time on the academy site - it has a lot of useful docs.

1 Like

Thank you so much for ur reply. The first link relates to a different plugin i think.
Bur I’ll try it and get back to you

Hi @Mehdimoradi - I noticed we’re working on similar custom field implementations in Bricks. Since you’ve already tackled this, would you be open to discussing your approach? I’d love to learn from your experience.