Custom Fields and HTML Tags
-
Is it possible, to store html tags within a custom field and to display this in the media description field (populated via IPTC/EXIF mapping). I use the description field quite a lot and the IPTC/EXIF rules are getting more and more unreadable. So I like to split it up and to store contextual links in Format in custom field/s
This code is currently operational
template:<br>iptc object name ([+iptc:2#005+])<br>media title ([+post_title+])<br>Custom Fields [+custom:ALL_CUSTOM+]<br>ewg_copyright_notice [+custom:ewg_copyright_notice+]<br><br><a id="kontext"></a><strong>Kontext</strong><br><br>Copyright: © ([+iptc:2#080+]), Alle Rechte vorbehalten, ([+iptc:2#055,substr(0,4)+])<br>Bild: ([+post_title+]) (\| ([+post_excerpt+]|[+iptc:2#120+]|[+iptc:2#105+]))<br>Ort und Datum: ([+iptc:2#090+])(, [+iptc:2#092+])( \| [+iptc:2#095+])( \| [+iptc:2#101+])( \| [+iptc:2#055+])(<br>Stichwörter: [+terms:attachment_tag+])<br><br><strong>Links</strong><br><br><a title="Beitrag: [+parent_title+]" href="[+site_url+]/?page_id=[+parent+]">Beitrag: [+parent_title+]</a><br><a title="Beitrag Galerie: [+parent_title+]" href="[+site_url+]/gezielte-bildersuche/?sk=[+parent_title+]">Bilder: [+parent_title+]</a><br><a title="Rubrik: [+terms:attachment_category+]" href="[+site_url+]/category/[+terms:attachment_category(slug)+]/">Rubrik: [+terms:attachment_category+]</a><br><a title="Rubrik Galerie: [+terms:attachment_category+]" href="[+site_url+]/gezielte-bildersuche/?sk=[+terms:attachment_category+]">Bilder: [+terms:attachment_category+]</a><br><a title="Download [+post_title+], Login erforderlich" href="[+site_url+]/email-download/?bld=([+post_id+])&btrg=[+parent+]">Download [+post_title+] [+post_id+]</a>
This part (half of operational code) I’d like to cover via custom fields
<a title="Beitrag: [+parent_title+]" href="[+site_url+]/?page_id=[+parent+]">Beitrag: [+parent_title+]</a><br><a title="Beitrag Galerie: [+parent_title+]" href="[+site_url+]/gezielte-bildersuche/?sk=[+parent_title+]">Bilder: [+parent_title+]</a><br><a title="Rubrik: [+terms:attachment_category+]" href="[+site_url+]/category/[+terms:attachment_category(slug)+]/">Rubrik: [+terms:attachment_category+]</a><br><a title="Rubrik Galerie: [+terms:attachment_category+]" href="[+site_url+]/gezielte-bildersuche/?sk=[+terms:attachment_category+]">Bilder: [+terms:attachment_category+]</a><br><a title="Download [+post_title+], Login erforderlich" href="[+site_url+]/email-download/?bld=([+post_id+])&btrg=[+parent+]">Download [+post_title+] [+post_id+]</a>
The page I need help with: [log in to see the link]
- The topic ‘Custom Fields and HTML Tags’ is closed to new replies.