WordPress.org

Plugin Directory

Changeset 476447


Ignore:
Timestamp:
12/16/11 16:38:57 (2 years ago)
Author:
ericmann
Message:

Updating to version 2.3.3 to fix a typo.

Location:
wp-publication-archive
Files:
66 added
3 edited

Legend:

Unmodified
Added
Removed
  • wp-publication-archive/trunk/lib/class.wp-publication-archive.php

    r476217 r476447  
    201201    public static function shortcode_handler( $atts ) { 
    202202        extract( shortcode_atts( array( 
    203                 'categories' => '' 
     203                'categories' => '', 
     204                'author' => '' 
    204205                ), $atts ) ); 
    205206         
     
    215216        } 
    216217 
    217         $pubs_per_page = apply_filters( 'wpa-pubs_per_page', 2 ); 
     218        $pubs_per_page = apply_filters( 'wpa-pubs_per_page', 10 ); 
    218219 
    219220        if(isset($_GET['wpa-paged'])) { 
     
    237238            'category__in' => $catFilter 
    238239        ); 
    239          
     240 
     241        if('' != $author) { 
     242            $args['tax_query'] = array(array( 
     243                'taxonomy' => 'publication-author', 
     244                'field' => 'slug', 
     245                'terms' => $author 
     246            )); 
     247        } 
     248 
    240249        $publications = get_posts( $args ); 
    241250 
  • wp-publication-archive/trunk/readme.txt

    r476217 r476447  
    55Requires at least: 3.0 
    66Tested up to: 3.3 
    7 Stable tag: 2.3.2 
     7Stable tag: 2.3.3 
    88 
    99Allows users to upload, manage, search, and download publications, documents, and similar content (PDF, Power-Point, etc.). 
     
    3939You can display a list of publications either by includeing the [wp-publication-archive] shortcode on a post/page or by placing <?php wp_publication_archive(); ?> in your theme template files.  WordPress will render your publication list automatically. 
    4040 
     41= Can I filter the list by category = 
     42 
     43Yes!  Just include `categories="cat-1,cat2"` in your shortcode where "cat-1" and "cat-2" are the *slugs* of the categories you want to display. 
     44 
     45= Can I filter the list by author? = 
     46 
     47Yes!  Just include `author="author-name"` in your shortcode where "author-name" is the *slug* of the author you want to display. 
     48 
    4149= What File Types are Available = 
    4250 
     
    5866 
    5967== Changelog == 
     68 
     69= 2.3.3 = 
     70* Immediate fix to a typo 
     71 
     72= 2.3.2.1 = 
     73* Add "author" filter to shortcode 
    6074 
    6175= 2.3.2 = 
  • wp-publication-archive/trunk/wp-publication-archive.php

    r476217 r476447  
    44Plugin URI: http://jumping-duck.com/wordpress 
    55Description: Allows users to upload, manage, search, and download publications, documents, and similar content (PDF, Power-Point, etc.). 
    6 Version: 2.3.2 
     6Version: 2.3.3 
    77Author: Eric Mann 
    88Author URI: http://eamann.com 
Note: See TracChangeset for help on using the changeset viewer.