Ads not displaying in template
-
I insert “AmazonAutoLinks( array( ‘id’ => 2451 ) );” for a category unit in my template but nothing shows. In chrome inspector, I see a comment generated in my code instead: “<!– Amazon Auto Links: Could not identify the unit type. Please make sure to update the auto-insert definition if you have deleted the unit. –>”
I also tried to use shortcode in the template “echo do_shortcode(‘[amazon_auto_links id=”2451″]’);”. The ads display, but it messes up with the queries and filters -facetwp- don’t work (page should refresh with ajax but doesn’t). Filters don’t work even when I refresh the page and filtering is in the page url.
I tried adding the code in archive and single custom post type and have the same problem.
Thank you!
- The topic ‘Ads not displaying in template’ is closed to new replies.