Title: Affiliate Press
Author: ldebrouwer
Published: <strong>April 6, 2012</strong>
Last modified: April 19, 2012

---

Search plugins

![](https://ps.w.org/affiliate-press/assets/banner-772x250.jpg?rev=530018)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/affiliate-press_5399ca.svg)

# Affiliate Press

 By [ldebrouwer](https://profiles.wordpress.org/ldebrouwer/)

[Download](https://downloads.wordpress.org/plugin/affiliate-press.0.3.8.zip)

 * [Details](https://wordpress.org/plugins/affiliate-press/#description)
 * [Reviews](https://wordpress.org/plugins/affiliate-press/#reviews)
 *  [Installation](https://wordpress.org/plugins/affiliate-press/#installation)
 * [Development](https://wordpress.org/plugins/affiliate-press/#developers)

 [Support](https://wordpress.org/support/plugin/affiliate-press/)

## Description

Affiliate Press is a plugin that allows you to create products ( as a custom post
type ) based on product feeds. It also collects other data for these products, such
as prices and affiliate links, which are shown on the product pages in the front
end, effectively allowing you to set up your own affiliate website as easy as 1-
2-3.

Affiliate Press was specifically developed to be compatible with multiple affiliate
programs and networks, aiming to support a broader range of feeds and therefor more
competitive prices for your visitor.

Currently I’m looking for people who are willing to send me examples of their product
feeds so I can improve this plugin further. Please send your XML product feeds as
attachment to [affiliatepress@lucdebrouwer.nl](https://wordpress.org/plugins/affiliate-press/affiliatepress@lucdebrouwer.nl?output_format=md).

Follow Luc De Brouwer on [Facebook](https://www.facebook.com/lucdebrouwernl) & [Twitter](http://twitter.com/ldebrouwer).

## Installation

 1. Upload the `affiliate-press` folder to the `/wp-content/plugins/` directory
 2. Activate the Affiliate Press plugin through the ‘Plugins’ menu in WordPress
 3. Configure the plugin by going to the `Affiliate Press` menu that appears in your
    admin menu

## FAQ

  How do I display the prices and links on a product page?

You can do this by copying the following PHP code in your product template.

    ```
        if( class_exists( 'LDB_Affiliate_Press' ) ) {
            $ap = new LDB_Affiliate_Press;
            echo $ap->AP_getPrices( true );
        }
    ```

To load the products into a page template you can use this code.

    ```
        $posts = get_posts( array( 'post_type' => 'product' ) );
        foreach( $posts as $post ) {
            setup_postdata( $post );
            the_title();
            the_post_thumbnail();
            the_content();
            if( class_exists( 'LDB_Affiliate_Press' ) ) {
                $ap = new LDB_Affiliate_Press;
                echo $ap->AP_getPrices( true );
            }
        }
    ```

If you’d rather retrieve just the data and not the pre-formatted table you can use
the following code.

    ```
        if( class_exists( 'LDB_Affiliate_Press' ) ) {
            $ap = new LDB_Affiliate_Press;
            $data = $ap->AP_getPrices();
        }
    ```

The affiliate data is now stored in the $data variable.

  Why am I not seeing the products on a category page?

By default custom post types are not shown on a category page. To achieve this you’ll
have to add something along the lines of the code below to your themes’ function.
php.

    ```
    add_filter( 'pre_get_posts', 'my_get_posts' );

    function my_get_posts( $query ) {

        if ( is_category() && $query->is_main_query() )
            $query->set( 'post_type', array( 'post', 'product' ) );

        return $query;

    }
    ```

  Why aren’t the images from the feed being attached to the post?

The permissions on you ‘uploads’ folder in ‘wp-content’ are most likely not set 
correctly.

  Where’s the help section?

This plugin is still under development and in beta. Most of the functionality is
still subject to change and I hope to bring some more features to the plugin. Compiling
an extensive help and support section would therefor be somewhat of a hassle at 
the moment. I strongly advise you to post in the [support forums](https://wordpress.org/tags/affiliate-press)
if you have any questions. ( And please check there first if your question wasn’t
answered yet. )

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Affiliate Press” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ ldebrouwer ](https://profiles.wordpress.org/ldebrouwer/)

[Translate “Affiliate Press” into your language.](https://translate.wordpress.org/projects/wp-plugins/affiliate-press)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/affiliate-press/), 
check out the [SVN repository](https://plugins.svn.wordpress.org/affiliate-press/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/affiliate-press/)
by [RSS](https://plugins.trac.wordpress.org/log/affiliate-press/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.3.8

 * Added ways to contact me to the sidebar.
 * Expanded the FAQ.

#### 0.3.7

 * Added support for categories and tags to the product post type.
 * Updated the FAQ.

#### 0.3.6

 * Added contextual help to all the pages of the plugin. I’ll try to expand these
   in the near future.
 * Removed a dependency on the $_SERVER[‘HTTP_REFERER’] variable.
 * Confirmed that the wizard works perfectly with TradeDoubler product feeds.

#### 0.3.5

 * Confirmed that the wizard also works with tradetracker.net product feeds.
 * Made some changes to the way how the dashboard statistics are calculated.
 * Added the currency to the price table for the front-end.
 * Fixed some typos.

#### 0.3.4

 * Added a first version of the dashboard.

#### 0.3.3

 * Added the ‘Add New Feed Wizard’. It’s still rudimentary and feedback would be
   highly appreciated. Should work like a charm with Daisycon feeds.

#### 0.3.2

 * Minor CSS change.
 * Alerts/Messages are now dismissible.

#### 0.3.1

 * Added support for cron jobs. They will process all prices every hour for now.
   Later I’ll make this manageable through a settings page.
 * Fixed a small bug where performing a bulk actions redirected you to the wrong
   page.
 * Tweaked the styling on the messages/warnings a little.
 * Made the icons stand out more.
 * The title tags for the ‘hidden pages’ are now also rendered correctly.
 * Switched from POST to GET methods on the feed and item index pages to allow keyboard
   entry of page numbers for the pagination.
 * Added support to return you to the right index page if you’ve been using sortable
   columns.

#### 0.3

 * Rewrite of a substantial part of the code.
 * You’re now able to link a feed item to an existing product.
 * The number of prices linked to a product is now shown on the products index page.

#### 0.2.1

 * Fixed some typos.
 * Added a pointer to help adding a feed.

#### 0.2

 * Second beta release.
 * Added support for automatic image import from the feed when creating drafts.

#### 0.1

 * Initial beta release.

## Meta

 *  Version **0.3.8**
 *  Last updated **14 years ago**
 *  Active installations **10+**
 *  WordPress version ** 3.3 or higher **
 *  Tested up to **3.4.2**
 * Tags
 * [affiliate](https://wordpress.org/plugins/tags/affiliate/)[affiliates](https://wordpress.org/plugins/tags/affiliates/)
   [product](https://wordpress.org/plugins/tags/product/)[product feed](https://wordpress.org/plugins/tags/product-feed/)
   [products](https://wordpress.org/plugins/tags/products/)
 *  [Advanced View](https://wordpress.org/plugins/affiliate-press/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/affiliate-press/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/affiliate-press/reviews/)

## Contributors

 *   [ ldebrouwer ](https://profiles.wordpress.org/ldebrouwer/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/affiliate-press/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://luc.me/40)