Hi,
I’m using a custom field (checkbox from TYPES plugin) to add a custom class to a custom post type. That works fine in the single.php where I call my field via
>div class=’container template-blog template-single-blog custom-single-job <?php echo types_render_field(‘my-field’, array(‘output’ => ‘raw’))?>’> .
But I need to output the custom field in the archives loop as a CSS Class.I created a custom taxonomy.php where I load my custom post taxonomy-myterm.php, which is basically a copy of enfold’s taxonomie-portfolio_entries.php
The listing should look like this:
<article class=’post-entry post-entry-type-standard post-entry-1245 post-loop-2 post-parity-even single-small post post-1245 job type-job status-publish hentry arbeitsort-oberoesterreich HEREMYCUSTOMFIELDOUTPUT’ itemscope=”itemscope” itemtype=”https://schema.org/CreativeWork” >
Can anybody help me with that?