• I know this is a general forum, even if it’s about themes too it’s more about free not paid ones but I have a problem with my theme. It’s a paid one, I didn’t stolen it to ask question about it on free forums(actually paid for that) but evem if support at ColorlabsProject may look ok based on the speed of the responses, the content of the responses you get could be also ok or awfull as hell depending on your luck.
    If someone could get a little help and save me from a brain attack, I solved most of my purchased theme issues(some based on their so-so responses, some based on what I found) minus one thing. I have some custom page templates and 2 of the are Video Page(that should output my latest video posts or a vide category, it’s not clear) and Gallery Page that’s working in the same maner as first one. Since those aren’t outputting what they should but my latest all blog posts could someone tell me where in this code the posts are called or where I can input something like a categoru ID(let’s say my video category):

    [ Moderator note: Please wrap code snippets in the backtick character or use the code button. ]

    <?php
    $colabs_pagetemplate_settings = array();
    $colabs_pagetemplate_settings = maybe_unserialize( get_post_meta($post->ID,'colabs_pagetemplate_settings',true) );
    
    $colabs_gallerycats = isset( $colabs_pagetemplate_settings['colabs_gallerycats'] ) ? $colabs_pagetemplate_settings['colabs_gallerycats'] : array();
    $colabs_gallery_perpage = isset( $colabs_pagetemplate_settings['colabs_gallery_perpage'] ) ? (int) $colabs_pagetemplate_settings['colabs_gallery_perpage'] : 12;
    ?>
    
    <?php get_header(); ?>
        	<div class="main-content">
              <div class="innercontainer">
            	<div class="page-location">
        			<?php colabs_breadcrumbs(array('separator' => '?', 'before' => false)); ?>
        		</div><!-- .page-location -->
    			<div class="featured">
    				<div class="fea-detail clearfix">
    					<div class="fea-side1">
    						<h2 class="content-title"><?php the_title(); ?></h2>
    					</div><!-- .fea-side1 -->
    				</div><!-- .fea-detail -->
    			</div><!-- .featured -->            
    
    			<?php
    			$gallery_query = '';
    			if(!empty($colabs_gallerycats)) $gallery_query = '&cat=' . implode(",", $colabs_gallerycats);
    			$the_query = new WP_Query('posts_per_page=' . $colabs_gallery_perpage.'&paged='.$paged . $gallery_query);
    
    			$i=1;
    			if ($the_query->have_posts()) : ?>
                <div class="gallery-post">
    				<?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
    					<a>" rel="lightbox" title="<?php the_title(); ?>">
    					 <?php if($i % 4 == 0)
    							colabs_image('width=128&height=128&link=img&class=gallery-last');
    						   else
    							colabs_image('width=128&height=128&link=img');
    					 ?>
    					</a>
    				<?php $i++; endwhile; ?>
                </div><!-- .gallery-post -->
    			<?php endif; ?>

    Or to keep it general, more forum related, could you recommend me an plugin that can output my latest X posts with thumbnail from an category? Thanks for any help/advice.

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Please help, I'm having trouble with one of my theme custom page’ is closed to new replies.