WordPress.org

Ready to get started?Download WordPress

Forums

HeatMap AdAptive
[resolved] need support (3 posts)

  1. Akumar9
    Member
    Posted 7 months ago #

    hi,

    i have author based website and using your theme.it's really great

    but i am facing a problem

    please help me ( because i am not a coding expert )

    i want to install two plugin with your theme but both plugins not working properly because of code placing error.

    but it's important for us because i want to share profit with Authors.

    And both plugins are perfect solution for this

    WP eBay Ads - http://wordpress.org/plugins/wp-ebay-ads/installation/

    Step : 1) You can also get the listings by placing the following code in your template file for your single post. Usually called single.php. Place it inside the loop. I like to place it right after the_content tag.

    <?php if(function_exists('wp_ebay_ads')) {wp_ebay_ads($post->ID);}?>

    AND...

    WP Amazon Ads - http://wordpress.org/plugins/wp-amazon-ads/installation/

    Step 1: You can also get the listings by placing the following code in your template file for your single post. Usually called single.php. Place it inside the loop. I like to place it right after the_content tag.

    <?php if(function_exists('wp_amazon_ads')) {wp_amazon_ads($post->ID);}?>

    i am trying to install both plugins but not success because of code placing error.

    please help me to add the code of WP eBay Ads & WP Amazon Ads

    1.Where to add & how to add

    2.File Name with placing area

  2. stuartwider
    Member
    Theme Author

    Posted 7 months ago #

    If you look closely at the theme file in single.php you will see that the theme uses hooks.
    Each hook calls a function.
    In particular...

    add_action('heatmapthemead_single_posts_hook', 'heatmapthemead_the_content');

    So you could either...
    edit heatmapthemead_the_content() which can be found in /inc/theme-tags.php

    or hook a function containing your calls to ebayads/amazonads after the line above.

    add_action('heatmapthemead_single_posts_hook', 'your_stuff');

    and add your_stuff() to /inc/wp-tweaks.php

    with your_stuff() containing something like...

    function your_stuff () {
    global $post;
    if(function_exists('wp_ebay_ads')) {wp_ebay_ads($post->ID);
    if(function_exists('wp_amazon_ads')) {wp_amazon_ads($post->ID);}
    }
  3. Akumar9
    Member
    Posted 6 months ago #

    hi, thanks for your support

    i am trying to add but facing problem ( because i am not an code expert like code developer like you )

    please help me

    May you setup the code within /inc/wp-tweaks.php file and also add hook in hook file and i will replace the file with new one.

    Plugin Name:

    WP eBay Ads
    WP Amazon Ads

    Our need amazon ads display only below the post

    and ebay ads display only above the post.

    Again, Thank for your support and please help us.

    Thank you very much,
    Ashish

Reply

You must log in to post.

About this Theme

About this Topic