Results 1 to 4 of 4

Thread: Featured ads (sticky) in your home page tabs (tutorial)

  1. #1
    Thread Starter
    Amateur moabi's Avatar
    Join Date
    Dec 2010
    Location
    France
    Posts
    19
    Thanks
    1
    Thanked 1 Time in 1 Post

    Featured ads (sticky) in your home page tabs (tutorial)

    well it works for me...

    add a li to your menu

    HTML Code:
    <li><a href="#block4"><span class="big"><?php _e('Featured Listings', 'appthemes')?></span></a></li>
    and then add a new tabb
    HTML Code:
                                           <!-- tab 4 -->
                <div id="block4">
    
                  <div class="clr"></div>
    
                  <div class="undertab"><span class="big"><?php _e('Classified Ads','appthemes') ?> / <strong><span class="colour"><?php _e('Just Listed','appthemes') ?></span></strong></span></div>
    
        <?php 
        query_posts(array('post__in' => get_option('sticky_posts'), 'post_type' => 'ad_listing', 'post_status' => 'publish')); ?>
    
                    <?php get_template_part('loop', 'ad'); ?>
    
                </div><!-- /block4 -->
    and you're done, i removed the random option for my purpose...i haven't tested it a lot but... it look like it works for me...

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,977
    Thanks
    170
    Thanked 3,407 Times in 3,278 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  3. #3
    Veteran doctorcilantro's Avatar
    Join Date
    Oct 2010
    Location
    Saudi Arabia
    Posts
    759
    Thanks
    2
    Thanked 26 Times in 16 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Veteran doctorcilantro's Avatar
    Join Date
    Oct 2010
    Location
    Saudi Arabia
    Posts
    759
    Thanks
    2
    Thanked 26 Times in 16 Posts
    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. Featured Ads in home page tab listing
    By iamfabian in forum ClassiPress General Discussion
    Replies: 4
    Last Post: January 20th, 2011, 11:20 AM
  2. home page only shows featured listings once I post an item
    By keynon in forum Report ClassiPress Bugs
    Replies: 4
    Last Post: December 28th, 2010, 07:48 PM
  3. Featured Ad (sticky)
    By massimorufo in forum Report ClassiPress Bugs
    Replies: 4
    Last Post: December 12th, 2010, 03:25 PM
  4. [MOD NEEDED] Showing ads og special cats under the home page tabs !
    By pinocchio in forum ClassiPress General Discussion
    Replies: 9
    Last Post: December 8th, 2010, 06:31 AM
  5. change background colour of featured job on home page
    By sportingjobs in forum Report JobRoller Bugs
    Replies: 1
    Last Post: November 24th, 2010, 05:11 PM