Forums › Forums › Search & Filter Pro › Category search
Tagged: category
- This topic has 50 replies, 2 voices, and was last updated 7 years, 10 months ago by
Trevor.
-
Trevor(Private) October 4, 2017 at 6:25 pm #134823
Yay!!
Got it, and found the code that I think I need, in files called:
blog-style-x.php
Where x is a letter from a to g. These files are in the main folder, and some more files in the /library/modules folder called:
cb-m-x.php
Where x is a letter from a to e.
All I have to do is figure which one your example uses!!
I will get back to you.
Trevor(Private) October 16, 2017 at 3:21 pm #136775I have a sample results.php for you, but as I can’t test it, I don’t know if it will work:
<?php /* Blog Style A */ if ( $query->have_posts() ) { ?> Found <?php echo $query->found_posts; ?> Results<br /> Page <?php echo $query->query['paged']; ?> of <?php echo $query->max_num_pages; ?><br /> <?php while ($query->have_posts()) { $query->the_post(); $cb_post_id = $post->ID; ?> <article id="post-<?php the_ID(); ?>" <?php post_class('cb-blog-style-a cb-module-e cb-separated clearfix'); ?>> <div class="cb-mask cb-img-fw" <?php cb_img_bg_color( $cb_post_id ); ?>> <?php cb_thumbnail( '260', '170' ); ?> <?php cb_review_ext_box( $cb_post_id ); ?> </div> <div class="cb-meta clearfix"> <h2 class="cb-post-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <?php cb_byline( $cb_post_id ); ?> <div class="cb-excerpt"><?php echo cb_clean_excerpt( 160 ); ?></div> <?php cb_post_meta( $cb_post_id ); ?> </div> </article> <?php } cb_page_navi( $cb_qry ); } wp_reset_postdata(); ?>
-
AuthorPosts