Title: Will this plugin do this?
Last modified: August 22, 2016

---

# Will this plugin do this?

 *  [milez](https://wordpress.org/support/users/milez/)
 * (@milez)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/will-this-plugin-do-this/)
 * Great plugin. I have a specific need and was wondering if someone could chime
   in whether this will work or not…
 * 1. I automatically post videos (custom post type) with title and description (
   no tags) pulled from youtube.
 * 2. I want to automatically build an Amazon related products section in the beginning
   of the post content based on the TITLE of the post.
 * Willing to pay to develop a solution if not supported OOTB by this plugin.
 * Thanks!
 * [https://wordpress.org/plugins/amazon-link/](https://wordpress.org/plugins/amazon-link/)

Viewing 14 replies - 1 through 14 (of 14 total)

 *  Plugin Author [paulstuttard](https://wordpress.org/support/users/paulstuttard/)
 * (@paulstuttard)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/will-this-plugin-do-this/#post-5730022)
 * Hi,
 * This might do what you want:
 * [https://wordpress.org/support/topic/display-amazon-links-based-on-post-title](https://wordpress.org/support/topic/display-amazon-links-based-on-post-title)
 * Paul
 *  Thread Starter [milez](https://wordpress.org/support/users/milez/)
 * (@milez)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/will-this-plugin-do-this/#post-5730073)
 * Paul you sir are a star! Going to test this now =)
 *  Thread Starter [milez](https://wordpress.org/support/users/milez/)
 * (@milez)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/will-this-plugin-do-this/#post-5730077)
 * Hmm for some reason all I get is a malformed ‘TEXT LINK’ – see screenshot: [http://i.imgur.com/zusFeuz.jpg](http://i.imgur.com/zusFeuz.jpg)
 * `<a onMouseOut="al_link_out()" onMouseOver="al_gen_multi(800170839, {uk : 'S-
   Disney Big Hero 6 Easter Eggs Surprise Box Grandes Héroes Huevos Sorpresa 2015
   by Toys Collector',us : 'S-Disney Big Hero 6 Easter Eggs Surprise Box Grandes
   Héroes Huevos Sorpresa 2015 by Toys Collector',de : 'S-Disney Big Hero 6 Easter
   Eggs Surprise Box Grandes Héroes Huevos Sorpresa 2015 by Toys Collector',es :'
   S-Disney Big Hero 6 Easter Eggs Surprise Box Grandes Héroes Huevos Sorpresa 2015
   by Toys Collector',fr : 'S-Disney Big Hero 6 Easter Eggs Surprise Box Grandes
   Héroes Huevos Sorpresa 2015 by Toys Collector',jp : 'S-Disney Big Hero 6 Easter
   Eggs Surprise Box Grandes Héroes Huevos Sorpresa 2015 by Toys Collector',it :'
   S-Disney Big Hero 6 Easter Eggs Surprise Box Grandes Héroes Huevos Sorpresa 2015
   by Toys Collector',cn : 'S-Disney Big Hero 6 Easter Eggs Surprise Box Grandes
   Héroes Huevos Sorpresa 2015 by Toys Collector',in : 'S-Disney Big Hero 6 Easter
   Eggs Surprise Box Grandes Héroes Huevos Sorpresa 2015 by Toys Collector',ca :'
   S-Disney Big Hero 6 Easter Eggs Surprise Box Grandes Héroes Huevos Sorpresa 2015
   by Toys Collector',br : 'S-Disney Big Hero 6 Easter Eggs Surprise Box Grandes
   Héroes Huevos Sorpresa 2015 by Toys Collector'}, 'us', 'default');" rel="nofollow"
   title="Disney Big Hero 6 Easter Eggs Surprise Box Grandes Héroes Huevos Sorpresa
   2015 by Toys Collector" href="http://www.amazon.com/mn/search/?_encoding=UTF8&
   linkCode=ur2&camp=1634&creative=19450&tag=-&field-keywords=Disney Big Hero 6 
   Easter Eggs Surprise Box Grandes Héroes Huevos Sorpresa 2015 by Toys Collector"
   >Link Text</a>`
 * When I hover over the link I get the list of flags and clicking those will show
   me correct items on Amazon. Also no bugs showing in firebug. I can see the title
   is being passed when I look at the debug info. Hmm, any idea what I am doing 
   wrong here?
 *  Thread Starter [milez](https://wordpress.org/support/users/milez/)
 * (@milez)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/will-this-plugin-do-this/#post-5730080)
 * I should point out I am able to insert a standard iframe product like so:
 * `[amazon template=iframe image&asin=B002EEP3NO]`
 * I should also mention I am using custom post type ‘Videos’
 * …will continue testing and share results.
 *  Thread Starter [milez](https://wordpress.org/support/users/milez/)
 * (@milez)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/will-this-plugin-do-this/#post-5730084)
 * Actually the wishlist is what I am after so I will focus on that.
 * Wishlist will display properly on custom post type. Just unsure how to implement
   the %POST_TITLE% and other variables in the wishlist template:
 *     ```
       <div class="al_found%FOUND%">
        <div class="amazon_prod">
         <div class="amazon_img_container">
          %LINK_OPEN%<img class="%IMAGE_CLASS%" src="%THUMB%">%LINK_CLOSE%
         </div>
         <div class="amazon_text_container">
          <p>%LINK_OPEN%%TITLE%%LINK_CLOSE%</p>
          <div class="amazon_details">
            <p>by %ARTIST% [%MANUFACTURER%]<br />
               Rank/Rating: %RANK%/%RATING%<br />
               <b>Price: <span class="amazon_price">%PRICE%</span></b>
           </p>
          </div>
         </div>
        </div>
       <img src="http://www.assoc-amazon.%TLD%/e/ir?t=%TAG%&l=as2&o=%MPLACE_ID%&a=%ASIN%" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
       </div>
       ```
   
 *  Thread Starter [milez](https://wordpress.org/support/users/milez/)
 * (@milez)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/will-this-plugin-do-this/#post-5730085)
 * Hmm after thinking about this some more…Is this impossible to do with the wishlist
   template? I am basically looking to list 3 Amazon products related to the post
   title. Appreciate any insight!
 *  Thread Starter [milez](https://wordpress.org/support/users/milez/)
 * (@milez)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/will-this-plugin-do-this/#post-5730097)
 * I was able to get this working with the Amazon Search Widget as mentioned here:
   [https://wordpress.org/support/topic/display-amazon-links-based-on-post-title](https://wordpress.org/support/topic/display-amazon-links-based-on-post-title)
 * Does anyone think it would be possible to get an HTML list for searching products
   by %POST_TITLE%? Something like the wishlist?
 *  Plugin Author [paulstuttard](https://wordpress.org/support/users/paulstuttard/)
 * (@paulstuttard)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/will-this-plugin-do-this/#post-5730099)
 * There is a way to do this…
 * But it involves the plugin doing a search request to the AWS to get a list of
   products, then the plugin doing a product lookup for those three products (which
   probably won’t be cached). So might slow page load times down.
 * I’ll look into it,
 * Paul
 *  Thread Starter [milez](https://wordpress.org/support/users/milez/)
 * (@milez)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/will-this-plugin-do-this/#post-5730114)
 * >>So might slow page load times down.
 * Ahh I see. I think ideally I would show 3-6 products in a row of <div>’s. A shame
   the results can’t be cached but I guess prices change, etc. Also building it 
   out as HTML will be very useful for spiders.
 * >>I’ll look into it
 * Cheers! Let me know if you have something to test =)
 *  Plugin Author [paulstuttard](https://wordpress.org/support/users/paulstuttard/)
 * (@paulstuttard)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/will-this-plugin-do-this/#post-5730157)
 * Hi,
 * The plugin will cache the product data, but if the search results change frequently
   then the new products will need a lookup. So if your lucky only the initial search
   will not be cached.
 * There is a method of doing live searches via shortcodes, however it is not compatible
   with the POST_TITLE keyword…
 * The syntax to perform live searches is as follows:
 *     ```
       [amazon s_index=All&s_author=&s_title=search keywords&s_page=1&wishlist_items=3&template=wishlist]
       ```
   
 * The trouble is you can’t use the %POST_TITLE% keyword in the shortcode as it 
   won’t be processed when it does the search (so it searches for POST_TITLE, not
   too useful).
 * Another option would be to use the external function amazon_shortcode(“[amazon…]”)
   in your theme’s template. Note this would have to be inside the ‘loop’. Something
   like:
 *     ```
       <?php
          if (function_exists(amazon_shortcode))
             echo amazon_shortcode("s_index=All&s_author=s_page=1&wishlist_items=3&template=wishlist&s_title=" . get_the_title()); ?>
       ```
   
 * Paul
 *  [wesitegeezer](https://wordpress.org/support/users/wesitegeezer/)
 * (@wesitegeezer)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/will-this-plugin-do-this/#post-5730251)
 * hi paul thanks for the great plugin I have implemented this as above with the
   code in functions and it appears to be correct.. I also noted that when i Utilize
   the Amazon Link Extra – Redirect, it changs some of th characters in the final
   ULR in the broser bar… It still gets to where its supposed to go, but im not 
   sure if its formatted corrctly.
    can i PM you?
 * Also stars not showing next to rating?
 *  [wesitegeezer](https://wordpress.org/support/users/wesitegeezer/)
 * (@wesitegeezer)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/will-this-plugin-do-this/#post-5730256)
 * Sorry another question is it possible to
    - Set title length to n characters (end on full word so assets dosent end up
      as ass 🙂
    - Stop zero price products showing in feed
 *  Plugin Author [paulstuttard](https://wordpress.org/support/users/paulstuttard/)
 * (@paulstuttard)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/will-this-plugin-do-this/#post-5730278)
 * Hi,
 * Sorry for the lack of response, rather busy at the moment!
 * It’s possible Amazon Link Redirect will have ‘over’ escaped some of the characters,
   do you have an example?
 * The AWS no longer supports the rating, I have an extra plugin that will grab 
   that info direct from the product page, however it isn’t too reliable.
 * For the title length you could try adding a filter, give you a chance to try 
   some PHP out…
 * Here’s my attempt, change the 25 to change the length…
 *     ```
       function alx_extras_title ($title) {
             return strtok(wordwrap($title, 25, "...\n"), "\n");
          }
             add_filter('amazon_link_template_process_title', 'alx_extras_title',11,1);
       ```
   
 * The price thing is a bit harder, maybe add a new keyword ‘NO_PRICE’ which equates
   to 0 or 1 if no price is available, then use css to hide items that have no price?
 * Paul
 *  [wesitegeezer](https://wordpress.org/support/users/wesitegeezer/)
 * (@wesitegeezer)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/will-this-plugin-do-this/#post-5730279)
 * Cheers Paul, no problem, im just creating / frankenstines monster website anyway,
   and trying to see if google will index 300,000 pages of S**t. (with affiliate
   products:)

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Will this plugin do this?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/amazon-link_070606.svg)
 * [Amazon Link](https://wordpress.org/plugins/amazon-link/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amazon-link/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amazon-link/)
 * [Active Topics](https://wordpress.org/support/plugin/amazon-link/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amazon-link/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amazon-link/reviews/)

 * 14 replies
 * 3 participants
 * Last reply from: [wesitegeezer](https://wordpress.org/support/users/wesitegeezer/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/will-this-plugin-do-this/#post-5730279)
 * Status: not resolved