WordPress.org

Ready to get started?Download WordPress

Forums

Post thumbanils (3 posts)

  1. wutzelmutz
    Member
    Posted 1 year ago #

    Hi there,

    I'm having a bit of a trouble with the theme "Neptune".
    This one is intended to use with portfolio and photo sites, but I would like to get it running for my business as well.

    The index.php's code is as follows:

    <?php
    /**
     * @package WordPress
     * @subpackage Neptune Theme
     */
    $options = get_option( 'neptune_theme_settings' );
    ?>
    <?php get_header(' '); ?>
    
    <div class="home-wrap clearfix">
    
    <!-- Recent Portfolio Items -->
    <?php
    //get post type ==> portfolio
    query_posts(array(
    	'post_type'=>'portfolio',
    	'posts_per_page' => 16,
    	'paged'=>$paged
    ));
    ?>
    
    <div id="home" class="clearfix">
    
    	<?php
    		//get portfolio categories
    		$cats = get_terms('portfolio_cats');
    		//show filter if categories exist
    		if($cats[1] !='') { ?>
    
            <!-- Portfolio Filter -->
            <ul id="portfolio-cats" class="filter clearfix">
            	<li class="sort"><?php _e('Sort Items','neptune'); ?>:</li>
                <li><a href="#all" rel="all" class="active"><span><?php _e('All', 'neptune'); ?></span></a></li>
                <?php
                foreach ($cats as $cat ) : ?>
                <li>//<a href="#<?php echo $cat->slug; ?>" rel="<?php echo $cat->slug; ?>"><span><?php echo $cat->name; ?></span></a></li>
                <?php endforeach; ?>
            </ul>
    
    	<?php } ?>
    
    <div id="portfolio-wrap" class="clearfix">
        	<ul class="portfolio-content">
    			<?php
                //get post type ==> portfolio
                query_posts(array(
                    'post_type'=>'portfolio',
                    'posts_per_page' => 16,
                    'paged'=>$paged
                ));
                ?>
    
                <?php
    			$count=0;
                while (have_posts()) : the_post();
    			$count++;
                //get portfolio thumbnail
                $thumbail = wp_get_attachment_image_src(get_post_thumbnail_id(), 'portfolio-thumb');
                //get terms
                $terms = get_the_terms( get_the_ID(), 'portfolio_cats' );
    			$terms_list = get_the_term_list( get_the_ID(), 'portfolio_cats' );
                ?>
    
                <?php if ( has_post_thumbnail() ) {  ?>
                <li data-id="id-<?php echo $count; ?>" data-type="<?php if($terms) { foreach ($terms as $term) { echo $term->slug .' '; } } else { echo 'none'; } ?>" class="portfolio-item">
                <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php echo $thumbail[0]; ?>" height="<?php echo $thumbail[2]; ?>" width="<?php echo $thumbail[1]; ?>" alt="<?php echo the_title(); ?>" />
                <span class="portfolio-item-overlay"><h3><?php echo the_title(); ?></h3></span>
                </a>
                </li>
                <?php } ?>
    
                <?php endwhile; ?>
    		</ul>
        </div>
    
    </div>
    <!-- END #home -->      	
    
    <?php pagination(); wp_reset_query(); ?>
    
    </div>
    <!-- END home-wrap -->
    <?php get_footer(' '); ?>

    I really like the new option of post images, and I would love to use them instead of the portfolio thumbnails. What do I have to change, and where can I set the standard sizes of the thumbs?
    I'm fairly new to wordpress and still are working my way through, so any help is highly appreciated.

    Thanks,
    Alex

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    the theme you are working with is not freely downloadable, and is therefore not supported by this forum.

    please contact the theme's vendor directly for support.

  3. wutzelmutz
    Member
    Posted 1 year ago #

    Hi alchymyth, I have to correct you in this point: The theme is freely downloadable (registration is needed) under http://www.wpexplorer.com/neptune-wordpress-theme.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.