ismpereira (April 1st, 2012), moko82 (March 3rd, 2013), stilz (October 29th, 2013)
<?php get_template_part( 'loop', 'ad_listing' ); ?>
<?php //get_template_part( 'loop', 'ad_listing' ); ?>
<!-- FEATURED CAT EDIT -->
<?php
wp_reset_query();
$paged = 0;
query_posts(array('post__in'=>get_option('sticky_posts'),'post_type' => APP_POST_TYPE, APP_TAX_CAT => $term->slug, 'paged' => $paged, posts_per_page=>5, orderby => 'rand'));
global $postisfeatured;
$featurePostArray = array();
global $featurePostArray;
$postisfeatured = "1";
get_template_part( 'loop', 'ad_listing' );
wp_reset_query();
$paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
query_posts(array('post_type' => APP_POST_TYPE, APP_TAX_CAT => $term->slug, 'paged' => $paged));
$postisfeatured = "";
get_template_part( 'loop', 'ad_listing' );
wp_reset_query();
?>
<?php appthemes_before_post(); ?>
<?php
global $postisfeatured;
global $featurePostArray;
if ($postisfeatured == "1") {
array_push($featurePostArray,$post->ID);
}
if (in_array($post->ID,$featurePostArray) && $postisfeatured != "1") {
echo '<div class="hide">';
}
?>
<?php appthemes_after_endwhile(); ?>
<?php // appthemes_after_endwhile(); ?>
<?php
if ($postisfeatured != "1"){
appthemes_after_endwhile();
$postisfeatured = "";
}
?>
.hide {display:none;}
ismpereira (April 1st, 2012), moko82 (March 3rd, 2013), stilz (October 29th, 2013)
ecua (April 1st, 2012)
There are currently 1 users browsing this thread. (0 members and 1 guests)