WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Ad Buttons] Using Ad Buttons outside wordpress (4 posts)

  1. DKMvang
    Member
    Posted 5 years ago #

    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

  2. mindnl
    Member
    Posted 5 years ago #

    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?

  3. mindnl
    Member
    Posted 4 years ago #

    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.

  4. DKMvang
    Member
    Posted 4 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags