Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #601162

    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&#8221; >

    Can anybody help me with that?

    #602479

    Hi marximo.lider!

    Thank you for using our theme.

    I’m not sure, what your question is and how we can help you?

    The code for the portfolio loop you find in
    enfold\config-templatebuilder\avia-shortcodes\portfolio.php line 455ff.

    Cheers!
    Günter

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.