Ad Inserter
[resolved] Insert short code into Theme template (4 posts)

  1. The Nutz
    Posted 3 years ago #

    I try to insert the short code into the theme template but no success.
    The code i have inserted looks like this: <?php echo do_shortcode('{adinserter banner}'); ?> i also change the {} with [] without succes . (banner=AD_NAME)

    Please help me!
    Thanks and Happy New Year!


  2. Igor
    Plugin Author

    Posted 3 years ago #


    {adinserter banner} should be inserted into post text.
    Ad Inserter will replace it with the ad code.

  3. Igor
    Plugin Author

    Posted 3 years ago #

    I assume the problem has been solved.

  4. tylerforret
    Posted 2 years ago #

    spacetime -

    I have the same question that this poster did. What he's asking is if you can hard code a manual ad into a theme - directly into the HTML instead of within a post. I understand how the ad insertion works within wordpress, but I'd like to be able to hard code something into my theme - much like he was talking about with the "do_shortcode" function, which is how this is done with typical shortcodes. Is this something you can do with this plugin?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Ad Inserter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic