edited ajut and each post
This commit is contained in:
parent
bffaa38328
commit
6d0791e03c
|
@ -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.
|
||||||
|
|
|
@ -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; ?>
|
||||||
|
|
||||||
|
|
|
@ -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/
|
||||||
|
@ -14,9 +15,12 @@
|
||||||
<?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>
|
||||||
|
|
Loading…
Reference in New Issue