WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. The Nutz
    Member
    Posted 1 year 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!

    http://wordpress.org/extend/plugins/ad-inserter/

  2. spacetime
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

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

  3. spacetime
    Member
    Plugin Author

    Posted 1 year ago #

    I assume the problem has been solved.

  4. tylerforret
    Member
    Posted 10 months 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

About this Topic