edited spacing, renamed properly a query

This commit is contained in:
jorge 2024-02-22 18:42:34 +01:00
parent a84bfeb0f6
commit 86c753a7ff
2 changed files with 6 additions and 6 deletions

View File

@ -32,7 +32,7 @@ get_header();
if ( is_front_page() ) :
//get_template_part( 'template-parts/section', 'featured' );
get_template_part( 'template-parts/section', 'last-convos' );
get_template_part( 'template-parts/section', 'agenda' );
echo '<aside id="extra" class="extra-content contingut-extra">';
dynamic_sidebar( 'front-page-widgets' ); // including widget front page
echo '</aside>';

View File

@ -1,6 +1,6 @@
<?php
/**
* Template part for displaying featured posts or "ajuts" and widgets
* Template part for displaying "convos" and widgets
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
@ -25,14 +25,14 @@
<?php
// https://developer.wordpress.org/reference/functions/get_posts/
// https://www.advancedcustomfields.com/resources/true-false/
$featured_query = new WP_Query(
$convos_query = new WP_Query(
array(
'post_type' => array( 'xarxaprod-convo' ),
'posts_per_page' => '3'
) );
?>
<?php if ( $featured_query->have_posts() ) : ?>
<?php while ( $featured_query->have_posts() ) : $featured_query->the_post(); ?>
<?php if ( $convos_query->have_posts() ) : ?>
<?php while ( $convos_query->have_posts() ) : $convos_query->the_post(); ?>
<?php //get_template_part( 'template-parts/section', 'eachpost' ); ?>