Linux 软件免费装
Banner图

Affiliate Press

开发者 ldebrouwer
更新时间 2012年4月19日 20:26
捐献地址: 去捐款
PHP版本: 3.3 及以上
WordPress版本: 3.4

标签

feeds feed affiliate product products affiliates product feed product feeds

下载

0.3.4 0.3.5 0.3.6 0.2 0.2.1 0.3 0.3.1 0.3.2 0.3.3 0.3.7 0.3.7.1 0.3.8

详情介绍:

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.

安装:

  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

升级注意事项:

Please use WordPress' automatic plugin update functionality to update the plugin. If you want to do a manual update please de-activate the plugin before uploading the new files. Re-activating the plugin afterwards will allow the plugin to perform database updates if necessary.

常见问题:

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

更新日志:

0.3.8 0.3.7 0.3.6 0.3.5 0.3.4 0.3.3 0.3.2 0.3.1 0.3 0.2.1 0.2 0.1