edited spacing, renamed properly a query
This commit is contained in:
parent
a84bfeb0f6
commit
86c753a7ff
2
page.php
2
page.php
|
@ -32,7 +32,7 @@ get_header();
|
||||||
if ( is_front_page() ) :
|
if ( is_front_page() ) :
|
||||||
//get_template_part( 'template-parts/section', 'featured' );
|
//get_template_part( 'template-parts/section', 'featured' );
|
||||||
get_template_part( 'template-parts/section', 'last-convos' );
|
get_template_part( 'template-parts/section', 'last-convos' );
|
||||||
|
get_template_part( 'template-parts/section', 'agenda' );
|
||||||
echo '<aside id="extra" class="extra-content contingut-extra">';
|
echo '<aside id="extra" class="extra-content contingut-extra">';
|
||||||
dynamic_sidebar( 'front-page-widgets' ); // including widget front page
|
dynamic_sidebar( 'front-page-widgets' ); // including widget front page
|
||||||
echo '</aside>';
|
echo '</aside>';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?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/
|
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||||
*
|
*
|
||||||
|
@ -25,14 +25,14 @@
|
||||||
<?php
|
<?php
|
||||||
// https://developer.wordpress.org/reference/functions/get_posts/
|
// https://developer.wordpress.org/reference/functions/get_posts/
|
||||||
// https://www.advancedcustomfields.com/resources/true-false/
|
// https://www.advancedcustomfields.com/resources/true-false/
|
||||||
$featured_query = new WP_Query(
|
$convos_query = new WP_Query(
|
||||||
array(
|
array(
|
||||||
'post_type' => array( 'xarxaprod-convo' ),
|
'post_type' => array( 'xarxaprod-convo' ),
|
||||||
'posts_per_page' => '3'
|
'posts_per_page' => '3'
|
||||||
) );
|
) );
|
||||||
?>
|
?>
|
||||||
<?php if ( $featured_query->have_posts() ) : ?>
|
<?php if ( $convos_query->have_posts() ) : ?>
|
||||||
<?php while ( $featured_query->have_posts() ) : $featured_query->the_post(); ?>
|
<?php while ( $convos_query->have_posts() ) : $convos_query->the_post(); ?>
|
||||||
|
|
||||||
<?php //get_template_part( 'template-parts/section', 'eachpost' ); ?>
|
<?php //get_template_part( 'template-parts/section', 'eachpost' ); ?>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue