WordPress.org

Plugin Directory

Changeset 532924


Ignore:
Timestamp:
04/18/12 16:17:38 (2 years ago)
Author:
ldebrouwer
Message:

Version 0.3.7. Added support for categories and tags. Updated the FAQ.

Location:
affiliate-press/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • affiliate-press/trunk/affiliate-press.php

    r532731 r532924  
    22/** 
    33 * @package Affiliate_Press 
    4  * @version 0.3.6 
     4 * @version 0.3.7 
    55 */ 
    66/* 
     
    99Description: Affiliate Press allows you to set up an affiliate website based on product feeds as easy as 1-2-3. 
    1010Author: ldebrouwer 
    11 Version: 0.3.6 
     11Version: 0.3.7 
    1212Author URI: http://lucdebrouwer.nl/ 
    1313*/ 
     
    3232function AP_activation() { 
    3333    include( LDB_AP_PATH . 'affiliate-press-upgrade.php' ); 
    34     update_option( 'LDB_Affiliate_Press_Version', '0.3.6' ); 
     34    update_option( 'LDB_Affiliate_Press_Version', '0.3.7' ); 
    3535    wp_schedule_event( time(), 'hourly', 'AP_cronjob' ); 
    3636} 
  • affiliate-press/trunk/includes/class-affiliate-press.php

    r532731 r532924  
    105105                'hierarchical' => false, 
    106106                'menu_position' => null, 
    107                 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments', 'custom-fields' ) 
     107                'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments', 'custom-fields' ), 
     108                'taxonomies' => array( 'category', 'post_tag' ) 
    108109            ); 
    109110            register_post_type( 'product', $args ); 
  • affiliate-press/trunk/readme.txt

    r532731 r532924  
    55Requires at least: 3.3 
    66Tested up to: 3.4 
    7 Stable tag: 0.3.6 
     7Stable tag: 0.3.7 
    88 
    99Affiliate Press allows you to set up an affiliate website based on product feeds as easy as 1-2-3. 
     
    3636</pre> 
    3737 
     38To load the products into a page template you can use this code. 
     39<pre> 
     40<?php 
     41    $posts = get_posts( array( 'post_type' => 'product' ) ); 
     42    foreach( $posts as $post ) { 
     43        setup_postdata( $post ); 
     44?> 
     45        <h2><?php the_title(); ?></h2> 
     46        <?php the_post_thumbnail(); ?> 
     47        <?php the_content(); ?> 
     48<?php 
     49        if( class_exists( 'LDB_Affiliate_Press' ) ) { 
     50            $ap = new LDB_Affiliate_Press; 
     51            echo $ap->AP_getPrices( true ); 
     52        } 
     53    } 
     54?> 
     55</pre> 
     56 
    3857If you'd rather retrieve just the data and not the pre-formatted table you can use the following code. 
    3958 
     
    5675 
    5776== Changelog == 
     77 
     78= 0.3.7 = 
     79* Added support for categories and tags to the product post type. 
     80* Updated the FAQ. 
    5881 
    5982= 0.3.6 = 
Note: See TracChangeset for help on using the changeset viewer.