Affiliate Press
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 affi
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 .
Follow Luc De Brouwer on Facebook & Twitter .
- 01Upload the affiliate-press folder to the /wp-content/plugins/ directory
- 02Activate the Affiliate Press plugin through the ‘Plugins’ menu in WordPress
- 03Configure the plugin by going to the Affiliate Press menu that appears in your admin menu
Frequently asked questions.
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(); }