Custom fields in Library
-
Hello
I’ve created a field group whose fields I show in the media library.
The fields are called name and organization.
Now I want to leave these values under the posts.
For this I have used the following code in posts:
function Copyright_acf () { if (is_single ()) { ???????? $ organization = get_field ('organization'); ???????? $ name = get_field ('name'); if ($ organization! = 'none'): echo 'product image (s): ?'. $ Organization; endif; if ($ name! = 'no'): echo '/'. $ Name; endif; } }
And in the single.php
<? Php if (function_exists ('Copyright_acf')) {Copyright_acf (); } ?>
How can I now display the fields from the Media Library?
- The topic ‘Custom fields in Library’ is closed to new replies.