Site logo

Archived topic

about custom field

17 replies · Started by bruce on August 22, 2022

Viewing posts 1–15 of 18

WordPress has its own built in Custom Fields:

https://wordpress.org/support/article/custom-fields/

And there are plugins like ACF, PODs or Metabox that can help with adding Custom Fields.

When you edit a post and create a Custom Field you give it a name:

e.g my-custom-field or my-description or anything-you-want

And a value.

In the GP Header Element you can use the template tag to display the value of the custom field eg.

{{custom_field.my-custom-field}}

Try a different Name eg.

hiwp-company

It needs to be unique. And maybe somewhere else the name company is being used.

Hello David ,

ok now.

here has other question about cf:

only header element can use template tags with cf or hook ,block, layout also can use cf.

thanks.

only header element can use template tags <-- correct

If you want to use them in Block element then you can do it with GenerateBlocks plugin. Are you using GenerateBlocks ?

hello

yes,i also buy generateblocks pro vision.

how can i do ?

thanks.

hello David:

text is ok .

how to use dynamic-data wich cf display image and files .

i test it.but the image only display the url.

thanks.

i test it.but the image only display the url.

Not sure I fully understand, image block can only display image.

Can you explain a bit more?

Hello Ying,

please see this pic:

but in fronpage only display this pic's url.

you can see this url:https://gp.jianzhanbang.tech/2965-2

i mean how to display this pic not the pic's url

thanks.

Hi Bruce,

You used a GB Headline Block. You’ll need to use a GB Image Block instead.

Hello Fernando,

GB block with custom field only can display text ?

images files can not use GB Headline Block ?

thanks.

This archived topic is closed to new replies.