0

i want to add custom variables to WordPress.

I want to add Variables via the "Document" Area: enter image description here

In this "Document" Area i want another Dropdown and in this Dropdown there Should be 5 TextFields, where i can write in Data and use this Data in the Theme(php/html file)

Is there any way to do this? If yes, how? And how can i add this to my php/html code?

Thanks You

  • What do you mean by "document" area? Are you wanting to add fields in the Editor for individual Posts/Pages/CPTs? If so, you could use custom metaboxes. Dropdown menus are pre-filled with choices, there's no writing in, so you may need textboxes instead. – WebElaine Mar 24 at 13:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.