Results 1 to 2 of 2

Thread: Popular Coupon Widget to Outgoing URL

  1. #1
    calicoupon's Avatar
    Join Date
    Dec 2013
    Location
    United States
    Posts
    18
    Thanks
    0
    Thanked 4 Times in 3 Posts

    Popular Coupon Widget to Outgoing URL

    I would like the popular coupon widget link to go directly to the affiliate link and not to the single coupon listing page.
    (I turned off single-coupon pages on my theme, but the widget link still brings users there)


    I am perfectly fine with code customization.
    This is the code in question for widgets.php (found in clipper/includes/widgets.php)

    Code:
    Code:
    $result .= '<li><a href="' . get_permalink() . '">' . get_the_title() . '</a> - ' . $comments_text . '</li>';
    No matter what I change the get_permalink() settings to, it will always make the link go to the single coupon listing, and not the affiliate link.
    I would like this link to go directly to the affiliate code link. This would be clpr_coupon_out_url or clpr_coupon_aff_url.

    I thought this would work by adding:

    Code:
    Code:
    $url = get_post_meta( $post->ID, 'clpr_coupon_aff_url', true );
    or

    Code:
    Code:
    $url = get_post_meta( $post->ID, 'clpr_coupon_out_url', true );
    and then changing get_permalink() to get_permalink($url) but it didn't work. Links still went to the single coupon listing page.

    Please help as I want to eliminate the need for the single-coupon pages as much as possible, thanks.

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,982
    Thanks
    170
    Thanked 3,408 Times in 3,279 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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Change Popular Coupon Widget to Outgoing URL
    By dthardy in forum Clipper General Discussion
    Replies: 1
    Last Post: January 23rd, 2014, 02:59 AM
  2. Popular Coupon and Store Widget Ribbon
    By shmall in forum Report Clipper Bugs
    Replies: 1
    Last Post: April 30th, 2012, 10:35 AM
  3. MOD : Popular Ads Widget Thumbnail
    By thuara in forum ClassiPress General Discussion
    Replies: 0
    Last Post: December 30th, 2011, 12:26 PM
  4. [SOLVED] Popular Ads Today Widget Timing
    By essej88 in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: July 20th, 2010, 11:21 AM
  5. Popular Ads Today Widget
    By essej88 in forum Help Using ClassiPress
    Replies: 0
    Last Post: June 14th, 2010, 01:56 PM