<?php /** * Template part for displaying each convo with each field in category, archive, search * to be used inside the loop. * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package Xarxaprod_theme */ ?> <article id="post-<?php the_ID(); ?>" <?php post_class('xarxaprod-card-each'); ?> > <h3 class="entry-title"> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark"> <?php the_title(); ?> </a> </h3> <?php if( get_field('xxp_convo_apply_end') ): ?> <h6 class="xarxaprod-convo-date"><?php the_field('xxp_convo_apply_end'); ?></h6> <?php endif; ?> <section class="excerpt post-excerpt"> <?php //the_excerpt() ?> <?php echo wp_trim_words(get_the_excerpt(), 30); // https://developer.wordpress.org/reference/functions/wp_trim_words/?> </section> <aside> <?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'xxp_convo_field') ); ?> <?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'xxp_convo_territory') ); ?> <?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'xxp_convo_service') ); ?> <?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'xxp_convo_center') ); ?> </aside> <nav class="more-link"> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark" class="button button-more"> Més info <span class="hide"><?php the_title(); ?></span> </a> </nav> </article><!-- #post-<?php the_ID(); ?> -->