• Resolved Akumar9

    (@akumar9)


    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author heatmap

    (@stuartwider)

    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);}
    }
    Thread Starter Akumar9

    (@akumar9)

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘need support’ is closed to new replies.