Results 1 to 8 of 8

Thread: Show Related Ads???????

  1. #1
    Thread Starter
    Junior Member srikant's Avatar
    Join Date
    Mar 2011
    Location
    India
    Posts
    23
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Show Related Ads???????



    I want to show related ads on single page listing page below the ad. anyone please help me for http://www.classifiedsduniya.com


    Thanks

  2. #2
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,098
    Thanks
    121
    Thanked 1,756 Times in 1,442 Posts
    Hi srikant,

    There is no built in option for this in ClassiPress. You may search for a third party plugin or do some modifications by your self.
    Rolf Hassel (Samcy)

  3. #3
    Thread Starter
    Junior Member srikant's Avatar
    Join Date
    Mar 2011
    Location
    India
    Posts
    23
    Thanks
    1
    Thanked 0 Times in 0 Posts
    @samcy: can you suggest me any plugin that can help me...

  4. #4
    Thread Starter
    Junior Member srikant's Avatar
    Join Date
    Mar 2011
    Location
    India
    Posts
    23
    Thanks
    1
    Thanked 0 Times in 0 Posts
    @samcy: can you tell me that how can i remove paging from home page..because its not working properly at classifiedsduniya.com

  5. #5
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,098
    Thanks
    121
    Thanked 1,756 Times in 1,442 Posts
    You may read this related thread: http://forums.appthemes.com/show-rel...ategory-23244/
    Rolf Hassel (Samcy)

  6. #6
    Thread Starter
    Junior Member srikant's Avatar
    Join Date
    Mar 2011
    Location
    India
    Posts
    23
    Thanks
    1
    Thanked 0 Times in 0 Posts
    @samcy: can you tell me that how can i remove paging from home page..because its not working properly at classifiedsduniya.com

  7. #7
    rubencio's Avatar
    Join Date
    May 2010
    Location
    Spain
    Posts
    3,804
    Thanks
    268
    Thanked 316 Times in 278 Posts
    Hi Srikant,

    Check our plugin:

    http://wprabbits.com/product/related...r-classipress/

    Regards

    r u b e n c i o . c o m


    Since 2010 providing AppThemes solutions,
    Plugins and the best childthemes...



  8. #8
    Thread Starter
    Junior Member srikant's Avatar
    Join Date
    Mar 2011
    Location
    India
    Posts
    23
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Anyone can modified this code to show the related ads on single-ad-listing.php..Please help me out for this code..


    <?php

    $term = wp_get_object_terms($post->ID, APP_TAX_CAT);
    $parent = $term[0]->parent;
    $parents[] = $term[0]->term_id;

    $sql = "SELECT term_id, slug FROM `wp_ub_terms` WHERE term_id = $parent";
    $resultat = mysql_query($sql);

    while($post=mysql_fetch_array($resultat)) {
    $newslug = $post['slug'];
    }

    $thePostID = $wp_query->post->ID;

    $args = array( 'numberposts' => 3, 'orderby' => 'rand', 'post_type' => APP_POST_TYPE, APP_TAX_CAT => $newslug, 'exclude' => $thePostID);
    $rand_posts = get_posts( $args );
    foreach( $rand_posts as $post ) : ?>
    <li><?php cp_ad_featured_thumbnail(); ?><a id="related-title" href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
    <?php endforeach; ?>
    </ul>

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [TUTORIAL] Show related ads including images by category
    By conseo in forum ClassiPress General Discussion
    Replies: 32
    Last Post: August 21st, 2014, 06:50 PM
  2. [MOD NEEDED] Similiar/Related Ads?
    By pbatista89 in forum ClassiPress General Discussion
    Replies: 6
    Last Post: April 7th, 2013, 02:38 PM
  3. Show Related ads in sidebar
    By bnt76 in forum ClassiPress General Discussion
    Replies: 1
    Last Post: January 26th, 2011, 07:35 AM