Skip to content
Advertisement

add specific text to a customm fields with php (wordpress)

I want to add text “Genre:” to the beginning of this custom field

JavaScript

the reason that i dont simply add something like this

JavaScript

is that i dont want to this text be shown when there isnt this field for a post

Advertisement

Answer

You can check if the field exists and then display your HTML element.

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement