Plugin này chưa được cập nhật với 3 phiên bản mới nhất của WordPress. Nó có thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress mới nhất.

Affiliate Press

Mô tả

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

Follow Luc De Brouwer on Facebook & Twitter.

Cài đặt

  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

Hỏi đáp

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 );
        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 if you have any questions. ( And please check there first if your question wasn’t answered yet. )

Đánh giá

There are no reviews for this plugin.

Người đóng góp & Lập trình viên

“Affiliate Press” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

Nhật ký thay đổi


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


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


  • 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.


  • Confirmed that the wizard also works with 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.


  • Added a first version of the dashboard.


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


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


  • 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.


  • 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.


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


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


  • Initial beta release.