Folio White theme -> Portfolio thumbnails not showing on homepage
-
Hi there!
I’m trying to display preview thumbnails of my portfolio items on a static frontpage. This worked on one site, for some reason I can not get it to work on another site.
The theme on both sites is the same (folio white by authentic themes – the portfolio thing is a feature of the theme itself). I would ask the theme builder, but it seems they’ve closed shop and are not providing support anymore.
I think I’ve narrowed it down to the “home.php” template file that calls the portfolio to the static front page. Any help is much appreciated. Code of Home.php is as follows:
‘<?php if ( of_get_option ( ‘enable_portfolio’, ‘1’ ) ) { ?>
<?php
/**************************
* Portfolio
****************************/
$query_portfolio_posts = new WP_Query(
array(
‘post_type’ => ‘portfolio’,
‘posts_per_page’ => of_get_option( ‘home_portfolio_count’,’8′),
‘no_found_rows’ => true,
)
);
if ( $query_portfolio_posts->posts ) { ?><div id=”home-portfolio”>
<div id=”portfolio-wrap”>
</div>
<?php $att_count=0; ?>
<?php foreach( $query_portfolio_posts->posts as $post ) : setup_postdata($post); ?>
<?php $att_count++; ?>
<?php get_template_part( ‘content’, ‘portfolio’ ); ?>
<?php $att_port_columns = of_get_option( ‘portfolio_columns’, ‘span_8’ ); ?>
<?php $att_clear_columns = $att_port_columns == ‘span_8’ ? 3 : 4; ?>
<?php if ( $att_count == $att_clear_columns ) { ?>
<?php $att_count = 0; ?>
<?php } ?>
<?php endforeach; ?>
</div><!– #portfolio-wrap –>
<!– /home-portfolio –>‘
- The topic ‘Folio White theme -> Portfolio thumbnails not showing on homepage’ is closed to new replies.