Read from elsewhere
Print a field inside the content of a page
Use the shortcode:
You want: a value of a field inside the content of a page, written by an editor, where there is no PHP.
How
[ugly-fields field="phone" option="1"]
[ugly-fields field="headline" post="12"]| Write | To get |
|---|---|
[ugly-fields field="headline"] | The field of the current page |
[ugly-fields field="headline" post="12"] | The field of post 12 |
[ugly-fields field="phone" option="1"] | The field of an options page |
It prints what ugly_show() prints, so it is safe.
Did this article answer your question?
Thank you. It helps us make the documentation better. Need more help?