From 8dfef5a2c642f6850d97c494f91ee23f0c892619 Mon Sep 17 00:00:00 2001 From: jorge-vitrubio Date: Thu, 29 Dec 2022 00:18:04 +0100 Subject: [PATCH] structured data in home page. Created section to loop content --- ...pe-category-number.php => acf-queries.php} | 0 template-parts/section-featured.php | 105 ++++++++++-------- template-parts/section-list-checkbox.php | 28 +++++ 3 files changed, 85 insertions(+), 48 deletions(-) rename template-parts/{loop-posttype-category-number.php => acf-queries.php} (100%) create mode 100644 template-parts/section-list-checkbox.php diff --git a/template-parts/loop-posttype-category-number.php b/template-parts/acf-queries.php similarity index 100% rename from template-parts/loop-posttype-category-number.php rename to template-parts/acf-queries.php diff --git a/template-parts/section-featured.php b/template-parts/section-featured.php index 82a84ff..40ca83d 100644 --- a/template-parts/section-featured.php +++ b/template-parts/section-featured.php @@ -1,6 +1,6 @@
- - - 'any', - 'post_per_page' => '4', - 'meta_query' => array( - array( - 'key' => 'os_home_show', - 'value'=> '1', - ) - ) - ) ); - ?> - have_posts() ) : ?> - have_posts() ) : $the_query->the_post(); ?> - - - - - - - -

- - - - + + 'any', + 'post_per_page' => '4', + 'meta_query' => array( + array( + 'key' => 'os_home_show', + 'value'=> '1', + ) + ) + ) ); + ?> + have_posts() ) : ?> + have_posts() ) : $the_query->the_post(); ?> + + +
+

+ + + +

+ +

+ +
+ + + +
+ + +
+ + + + +

+ + + +
- - + diff --git a/template-parts/section-list-checkbox.php b/template-parts/section-list-checkbox.php new file mode 100644 index 0000000..8760cf1 --- /dev/null +++ b/template-parts/section-list-checkbox.php @@ -0,0 +1,28 @@ + + + 'CHANGETHIS') ); + $fielditerate = $args['os_acf_field']; + ?> + + + +