Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Affiliate Press

Affiliate Press allows you to set up an affiliate website based on product feeds as easy as 1-2-3.

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

Requires: 3.3 or higher
Compatible up to: 3.4.2
Last Updated: 5 years ago
Active Installs: 80+


0 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.