edited how to show faqs and its labels

This commit is contained in:
jorge 2023-01-30 18:17:37 +01:00
parent 39ff8f321f
commit 42927ccbf9
2 changed files with 8 additions and 3 deletions

View File

@ -42,8 +42,11 @@ get_header();
endif; endif;
?> ?>
<?php ofisuport_display_faqs_labels(); ?> <?php //if( in_category('faq') ) : ?>
<content class="archive-posts <?php ofisuport_class_posttype(); ?>"> <?php ofisuport_display_faqs_labels(); ?>
<?php //endif; //end if is_category faq ?>
<content class="archive-posts <?php ofisuport_class_posttype(); ?>">
<?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/
@ -51,7 +54,7 @@ get_header();
$the_query_faq = new WP_Query( $the_query_faq = new WP_Query(
array( array(
'post_type' => 'post', 'post_type' => 'post',
'category' => 'faq', 'category_name' => 'faq',
'post_per_page' => '8' 'post_per_page' => '8'
) ); ) );
?> ?>

View File

@ -36,7 +36,9 @@
</ul> </ul>
<?php endif; ?> <?php endif; ?>
<?php if( get_field('os_fund_call') ): ?>
<?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'os_fund_call') ); ?> <?php get_template_part( 'template-parts/section', 'list-checkbox', array('iterate_field' => 'os_fund_call') ); ?>
<?php endif; ?>
</aside> </aside>
<nav class="more-link"> <nav class="more-link">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark" class="button button-more"> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark" class="button button-more">