From d2fa40232301362149de7bb6d0955e2aa15b58a9 Mon Sep 17 00:00:00 2001 From: jorge-vitrubio Date: Thu, 29 Dec 2022 23:27:17 +0100 Subject: [PATCH] created the page templates for fund search and faq page. Created the template part for each post or fund --- archive.php | 6 +---- inc/template-functions.php | 12 +--------- template-parts/section-eachpost.php | 36 +++++++++++++++++++++++++++++ template-parts/section-featured.php | 28 +--------------------- 4 files changed, 39 insertions(+), 43 deletions(-) create mode 100644 template-parts/section-eachpost.php diff --git a/archive.php b/archive.php index 85b8eb8..e9877b8 100644 --- a/archive.php +++ b/archive.php @@ -15,12 +15,8 @@ get_header(); - + rewrite['slug']; - echo $post_type_slug; - }; -} - function ofisuport_class_posttype (){ if( is_post_type_archive( array('ofisuport-ajut') )) { echo ' archive-custom-post-type-'; - ofisuport_echo_posttype_slug(); + printf(get_post_type_object( get_post_type() )->rewrite['slug'] ); } } diff --git a/template-parts/section-eachpost.php b/template-parts/section-eachpost.php new file mode 100644 index 0000000..e1493c8 --- /dev/null +++ b/template-parts/section-eachpost.php @@ -0,0 +1,36 @@ + + +
> +

+ + + +

+ +

+ +
+ + + +
+ + +
diff --git a/template-parts/section-featured.php b/template-parts/section-featured.php index 9acc75a..7458fc8 100644 --- a/template-parts/section-featured.php +++ b/template-parts/section-featured.php @@ -40,33 +40,7 @@ have_posts() ) : ?> have_posts() ) : $the_query->the_post(); ?> - -
-

- - - -

- -

- -
- - - -
- - -
+