Results 1 to 4 of 4

Thread: Featured Tab on Home Page ver. 3.3.1

  1. #1
    Thread Starter
    honeytree's Avatar
    Join Date
    Sep 2013
    Location
    United States
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Featured Tab on Home Page ver. 3.3.1

    I am trying to add a tab to the homepage that includes ONLY Featured (Sticky) ads.. I've got the tag setup and I've tried a bunch of permutations that seemed to make sense for me but haven't yet been able to get this to work. I've seen tutorials for previous versions only.

    If I want Tab #1 to be just featured ads what do I need to change in this code for (tpl-ads-home.php) ?



    <!-- tab 1 -->
    <div id="block1">

    <div class="clr"></div>

    <div class="undertab"><span class="big"><?php _e( 'Classified Ads', APP_TD ); ?> / <strong><span class="colour"><?php _e( 'Featured Ads', APP_TD ); ?></span></strong></span></div>

    <?php
    // show all ads but make sure the sticky featured ads don't show up first
    $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
    query_posts( array( 'post_type' => APP_POST_TYPE, 'igonore_sticky_posts' => 1, 'paged' => $paged ) );
    $total_pages = max( 1, absint( $wp_query->max_num_pages ) );
    ?>

    <?php get_template_part( 'loop', 'ad_listing' ); ?>

    <?php
    if ( $total_pages > 1 ) {
    ?>
    <div class="paging"><a href="<?php echo $post_type_url; ?>"> <?php _e( 'View More Ads', APP_TD ); ?> </a></div>
    <?php } ?>

    </div><!-- /block1 -->

  2. #2
    Thread Starter
    honeytree's Avatar
    Join Date
    Sep 2013
    Location
    United States
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,098
    Thanks
    121
    Thanked 1,756 Times in 1,442 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Rolf Hassel (Samcy)

  4. #4
    Amateur kami's Avatar
    Join Date
    Jul 2012
    Location
    Malaysia
    Posts
    15
    Thanks
    1
    Thanked 1 Time in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Jomark Only Featured Jobs on Home Page
    By blue61em in forum Help Using JobRoller
    Replies: 1
    Last Post: July 27th, 2013, 10:24 AM
  2. Change featured tab on home Page
    By cyclebarter in forum ClassiPress General Discussion
    Replies: 2
    Last Post: June 24th, 2013, 04:35 PM
  3. i can't see featured slider on the home page
    By detao in forum ClassiPress General Discussion
    Replies: 5
    Last Post: October 9th, 2012, 10:44 AM
  4. How To have Listing Page Featured Listings When It Is NOT Your Home Page?
    By radioz in forum Vantage General Discussion (Legacy)
    Replies: 1
    Last Post: September 4th, 2012, 03:39 AM
  5. Featured Ads in home page tab listing
    By iamfabian in forum ClassiPress General Discussion
    Replies: 4
    Last Post: January 20th, 2011, 11:20 AM