edited ajut and each post

This commit is contained in:
jorge-vitrubio 2024-01-26 10:26:45 +01:00
parent bffaa38328
commit 6d0791e03c
3 changed files with 11 additions and 7 deletions

View File

@ -9,7 +9,7 @@
get_header(); get_header();
?> ?>
<!-- archive-xarxaprod-ajut.php -->
<main id="primary" class="site-main"> <main id="primary" class="site-main">
<?php <?php
// Detect plugin. For use on Front End only. // Detect plugin. For use on Front End only.

View File

@ -8,7 +8,7 @@
*/ */
?> ?>
<!-- /template-parts/content-xarxaprod-ajut.php -->
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header"> <header class="entry-header">
@ -109,7 +109,7 @@
<?php if( get_field('os_fund_web') ): ?> <?php if( get_field('os_fund_web') ): ?>
<div class="xarxaprod-fund-info-field"> <div class="xarxaprod-fund-info-field">
<h6>+ Informació</h6> <h6>+ Informació</h6>
<p><a href="<?php the_field('os_fund_web'); ?>" class="button button-more button-letsgo">ves-hi</a></p> <p><a href="<?php echo get_field('os_fund_web'); ?>" class="button button-more button-letsgo">ves-hi</a></p>
</div> </div>
<?php endif; ?> <?php endif; ?>

View File

@ -1,5 +1,6 @@
<?php /** <?php
* Template part for displaying each ajut with each field. /**
* Template part for displaying each ajut with each field in category, archive, search
* to be used inside the loop. * to be used inside the loop.
* *
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
@ -8,15 +9,18 @@
*/ */
?> ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('xarxaprod-card-each'); ?>> <article id="post-<?php the_ID(); ?>" <?php post_class('xarxaprod-card-each'); ?> >
<h3 class="entry-title"> <h3 class="entry-title">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark"> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark">
<?php the_title(); ?> <?php the_title(); ?>
</a> </a>
</h3> </h3>
<?php if( get_field('os_funder_name') ): ?> <?php if( get_field('os_funder_name') ): //case of ajuts fund ?>
<h6 class="xarxaprod-funder-name"><?php the_field('os_funder_name'); ?></h6> <h6 class="xarxaprod-funder-name"><?php the_field('os_funder_name'); ?></h6>
<?php endif; ?> <?php endif; ?>
<?php if( get_field('os_convoer_name') ): //case of convocatories convo ?>
<h6 class="xarxaprod-convoer-name"><?php the_field('os_convoer_name'); ?></h6>
<?php endif; ?>
<section class="excerpt post-excerpt"> <section class="excerpt post-excerpt">
<?php the_excerpt() ?> <?php the_excerpt() ?>
</section> </section>