• Resolved dkmvang

    (@dkmvang)


    Hi

    Is it possible to show ads outside wordpress, still using the wordpress settings?

    I want to administrate the ads in wordpress, but also show them on my main page, witch is not a wordpress site.

    Thansk in advance..

    Mads

Viewing 3 replies - 1 through 3 (of 3 total)
  • all the widget contains is the ad_buttons(); function, you might be able to call that from your main page. Not sure how the required database access would work though, can you show other wordpress functions or blog content on your main page?

    Here’s something you could give a try:

    <?php
    require_once('full/path/to/wp-blog-header.php');
    ad_buttons();
    ?>

    The first line initializes the wordpress environment and the second one shows the ads.

    Thread Starter dkmvang

    (@dkmvang)

    Thank you very much.
    It works just as I wanted.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Ad Buttons] Using Ad Buttons outside wordpress’ is closed to new replies.