Plugin Directory

Changeset 491859


Ignore:
Timestamp:
01/18/2012 09:06:07 PM (14 years ago)
Author:
yonisink
Message:

Updated to include post

Location:
custom-post-types-image
Files:
14 added
3 edited

Legend:

Unmodified
Added
Removed
  • custom-post-types-image/trunk/cptImages.php

    r478305 r491859  
    123123                $current_CPT=get_post_type($post);
    124124            }
    125 
     125            elseif(is_category()) {
     126                $current_CPT='post';
     127            }
     128           
    126129            if($current_CPT) {
    127130                $allCPTs = get_post_types();
  • custom-post-types-image/trunk/cptImages_admin.php

    r478305 r491859  
    108108                            global $pTypeDownloadDirectory;                         
    109109                            $allCPTs = get_post_types();
    110                                 $skipTypes = array('post','page','attachment','revision','nav_menu_item');
     110                                $skipTypes = array('page','attachment','revision','nav_menu_item');
    111111                               
    112112                                foreach($allCPTs as $CPT) {
  • custom-post-types-image/trunk/readme.txt

    r478610 r491859  
    55Requires at least: 3
    66Tested up to: 3.3
    7 Stable Tag: 0.5
     7Stable Tag: 0.6
    88
    99Upload and attach a 'featured' image to any registered custom post types and call it via shortcode or template tag in your theme.
     
    3737== Upgrade Notice ==
    3838
    39 * No upgrades yet
     39* 0.6
     40
     41Added 'post' (basic WP type) as another image. You can now use it in categories, etc.
    4042
    4143== Changelog ==
Note: See TracChangeset for help on using the changeset viewer.