-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaddon-full-width.php
More file actions
42 lines (32 loc) · 1.09 KB
/
addon-full-width.php
File metadata and controls
42 lines (32 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* Template Name: Addons by Category
* Template Post Type: page
*
* @package SuitePress
*/
get_header();
?>
<div id="primary">
<main id="main" class="site-main" role="main">
<?php
if ( have_posts() ) :
while ( have_posts() ) : the_post();
$selected_category = get_post_meta( get_the_ID(), '_addon_category', true );
// Pass category to template parts
set_query_var( 'addon_category', $selected_category );
?>
<!-- Hero Header Section with Shimmer Effect -->
<?php get_template_part( 'template-parts/page/addon/hero' ); ?>
<!-- Addons Grid Section -->
<?php get_template_part( 'template-parts/page/addon/grid' ); ?>
<!-- Donation Section -->
<?php get_template_part( 'template-parts/page/addon/donation' ); ?>
<?php
endwhile;
endif;
?>
</main>
</div>
<?php
get_footer();