Changeset 281555
- Timestamp:
- 07/29/2025 08:09:25 AM (15 months ago)
- Location:
- blog-sphere/1.1.0
- Files:
-
- 2 edited
- 1 copied
-
. (copied) (copied from blog-sphere/1.0.9 )
-
category.php (modified) (1 diff)
-
style.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
blog-sphere/1.1.0/category.php
r257386 r281555 1 <?php 2 /* 3 Template Name: Custom Category Page 4 */ 1 <?php get_header(); ?> 5 2 3 <main id="primary" class="site-main py-5"> 4 <div class="container"> 5 <div class="row"> 6 6 7 <!-- Left Content Column --> 8 <div class="col-md-8"> 9 <h1 class="archive-title"> 10 <?php single_cat_title(); ?> 11 </h1> 7 12 8 get_header(); ?> 9 <main id="content"> 10 <div class="page-container"> 11 <div class="container"> 13 <?php if ( category_description() ) : ?> 14 <div class="category-description mb-4"> 15 <?php echo category_description(); ?> 16 </div> 17 <?php endif; ?> 18 12 19 <div class="row"> 13 <div class="col-lg-12 col-md-12 col-12"> 14 <div class="row"> 15 <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> 16 <div class="col-lg-6 col-md-6 mb-4"> 17 <div class="card"> 18 <div class="card-body"> 19 <div class="post-thumbnail"> 20 <?php the_post_thumbnail(); ?> 21 </div><!-- .post-thumbnail --> 22 <div class="cat-meta"> 23 <span class="posted-on"><?php echo esc_html(get_the_date()); ?></span> 24 <span class="byline"> by <?php the_author_posts_link(); ?></span> 25 </div> 26 <a href="<?php the_permalink(); ?>"><h5 class="card-title"><?php the_title(); ?></h5></a> 27 <p class="card-text"><?php the_excerpt(); ?></p> 28 <a href="<?php the_permalink(); ?>" class="btn btn-primary"><span><?php esc_html_e( 'Read More', 'blog-sphere' ); ?> </span></a> 29 </div> 20 <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> 21 <div class="col-md-6 mb-4"> 22 <div class="card h-100"> 23 <?php if ( has_post_thumbnail() ) : ?> 24 <a href="<?php the_permalink(); ?>"> 25 <?php the_post_thumbnail( 'medium', ['class' => 'card-img-top'] ); ?> 26 </a> 27 <?php endif; ?> 28 29 <div class="card-body"> 30 <h5 class="card-title"> 31 <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> 32 </h5> 33 34 <!-- Custom Field Example --> 35 <?php 36 $custom_value = get_post_meta(get_the_ID(), 'custom_field_key', true); 37 if ($custom_value) : 38 ?> 39 <p><strong>Extra Info:</strong> <?php echo esc_html($custom_value); ?></p> 40 <?php endif; ?> 41 42 <p class="card-text"><?php echo wp_trim_words( get_the_excerpt(), 20 ); ?></p> 43 </div> 44 <div class="card-footer text-muted"> 45 Posted on <?php echo get_the_date(); ?> 30 46 </div> 31 47 </div> 32 <?php endwhile; endif; ?>33 48 </div> 34 < /div>49 <?php endwhile; ?> 35 50 </div> 51 52 <div class="pagination mt-4"> 53 <?php the_posts_pagination(); ?> 54 </div> 55 56 <?php else : ?> 57 <p><?php esc_html_e( 'No posts found in this category.', 'blog-sphere' ); ?></p> 58 <?php endif; ?> 36 59 </div> 60 61 <!-- Right Sidebar --> 62 <div class="col-md-4"> 63 <?php get_sidebar(); ?> 64 </div> 65 66 </div> 37 67 </div> 38 68 </main> 39 69 40 <?php get_footer(); ?>70 <?php get_footer(); ?> -
blog-sphere/1.1.0/style.css
r278017 r281555 5 5 Author URI: https://cawpthemes.com/ 6 6 Description: Blog Sphere is a free WordPress theme designed specifically for bloggers who want a clean, modern, and professional layout for their personal blogs. With its minimalist design, Blog Sphere ensures your content remains the focus, while its responsive and mobile-friendly structure guarantees a seamless experience on all devices. The theme offers customizable layouts, typography options, and widget-ready areas, allowing you to tailor the design to your unique style. Perfect for beginners and seasoned bloggers alike, Blog Sphere simplifies the blogging process while providing a polished, user-friendly interface. Whether you're sharing stories, tips, or ideas, Blog Sphere makes your blog shine. 7 Version: 1. 0.97 Version: 1.1.0 8 8 Tested up to: 6.7 9 9 Requires PHP: 7.0
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)