Plugin Directory

Changeset 631367


Ignore:
Timestamp:
11/28/2012 04:16:24 PM (13 years ago)
Author:
khratos
Message:

Plugin update:

  • Global code correctness assessment to ensure compatibility with latest WP versions.
Location:
pe-category-filter
Files:
1 added
2 edited
5 copied

Legend:

Unmodified
Added
Removed
  • pe-category-filter/tags/1.1/pecf_catfilter.php

    r631200 r631367  
    33 * @package PECF (PavelEspinal Category Filter)
    44 * @author Pavel Espinal
    5  * @version 1.0
     5 * @version 1.1
    66 */
    77/*
    88 Plugin Name:   PE Category Filter
    99 Plugin URI:    http://pavelespinal.com/resume/downloads/
    10  Description:   This plugin filters the Categories that will show up in the front page of your website.<br/> This plugin attempts to be a well written way to filter categories on Wordpress.
    11  Version:       1.0
     10 Description:   This plugin filters the Categories that will show up in the front page of your website.<br/> This plugin attempts to be a well written (using WP native methods) way to filter categories on Wordpress.
     11 Version:       1.1
    1212 Author:        J. Pavel Espinal
    13  Author URI:    http://www.pavelespinal.com
     13 Author URI:    http://pavelespinal.com/resume/about
    1414 License:       GPL2
    1515
     
    9494    $options = get_option('pecf_cat-list');
    9595   
    96     $args = array( 'taxonomy' => 'category');
     96    $args = array( 'taxonomy' => 'category', 'hide_empty' => 0);
    9797    $cat_list = get_categories($args);
    9898   
  • pe-category-filter/tags/1.1/readme.txt

    r631200 r631367  
    11=== PE Category Filter ===
    22Contributors: khratos
    3 Tags: category, filter, category filter, exclude post, home page
     3Tags: category, filter, category filter, exclude post, home page, exclude from home
    44Donate link: http://asteriskfaqs.org/2012/03/03/general/make-a-donation.html
    55Requires at least: 3.0
    6 Tested up to: 3.3.1
    7 Stable tag: 1.0
     6Tested up to: 3.4.2
     7Stable tag: 1.1
    88
    99This plugin allows you to exclude posts that belong to certain categories from your home page.
     
    1111== Description ==
    1212
    13 This plugin allows you to **exclude** posts that belong to certain categories from your *home page*, while they will still be reachable
     13This plugin allows you to **exclude** posts that belong to certain categories from your **home page**, while they will still be reachable
    1414from the inner sections of your site.
    1515
    16 Please note that you should have at least one post in certaing category in order to be able to exclude that category's posts from Home Page it using this plugin.
     16This is an ad-hoc solution that aims to do **one** thing, and do it right.
    1717
    18 The focus of this plugin is simplicity, performance and correctness of the code.
     18- Please note the following:
    1919
    20 You can see this plugin in action here: http://asteriskfaqs.org , where the post in home page
    21 are exclusively the ones I have written, while others (automatically posted via email) are
    22 present in the inner sections.
     20* The functionality of this plugin can not be limited to a given widget of the home page. Example:
     21
     22You have a category "MyCategory" from which you will exclude posts from the **home page**.
     23A the same time, you want to display posts of "MyCategory" in a widget that is located **in the home page**.
     24
     25That would be overkilling. You don't need to *exclude* everything and do one exception, you need to *allow* everything and do one exception.
     26
     27* The focus of this plugin is simplicity, performance and correctness of the code.
     28
     29- You can see this plugin in action the following projects where the post in home page are exclusively the ones I have written, while others
     30(automatically posted via email) are present in the inner sections:
     31
     32* http://asteriskfaqs.org - Important VoIP community project.
     33* http://slackware-es.com - Slackware Linux documentation project (Spanish)
     34
    2335
    2436== Installation ==
    2537
    26381. Upload `pecf_catfilter` to the `/wp-content/plugins/` directory
    27 1. Activate the plugin through the 'Plugins' menu in WordPress
    28 1. Go to 'Settings' and choose which categories' posts you want to _exclude_ from the Home Page
     392. Activate the plugin through the 'Plugins' menu in WordPress
     403. Go to 'Settings' and choose which categories' posts you want to _exclude_ from the Home Page
    2941
    3042== Frequently Asked Questions ==
    3143
    32 None. Yet.
     44* I'm using the plugin and while it works as expected, I would like it to allow content from a filtered category to be displayed by
     45some other plugin. Is that possible?
     46
     47No. At least not for now. Read the description for more details.
    3348
    3449== Screenshots ==
     
    4156= 1.0 =
    4257* Stable release.
     58
     59= 1.1 =
     60* Allowing to exclude categories whether they have posts or not.
     61* Global code assessment to ensure compatibility with latest WP versions.
     62* Improving "readme" documentation.
  • pe-category-filter/trunk/pecf_catfilter.php

    r513918 r631367  
    33 * @package PECF (PavelEspinal Category Filter)
    44 * @author Pavel Espinal
    5  * @version 1.0
     5 * @version 1.1
    66 */
    77/*
    88 Plugin Name:   PE Category Filter
    99 Plugin URI:    http://pavelespinal.com/resume/downloads/
    10  Description:   This plugin filters the Categories that will show up in the front page of your website.<br/> This plugin attempts to be a well written way to filter categories on Wordpress.
    11  Version:       1.0
     10 Description:   This plugin filters the Categories that will show up in the front page of your website.<br/> This plugin attempts to be a well written (using WP native methods) way to filter categories on Wordpress.
     11 Version:       1.1
    1212 Author:        J. Pavel Espinal
    13  Author URI:    http://www.pavelespinal.com
     13 Author URI:    http://pavelespinal.com/resume/about
    1414 License:       GPL2
    1515
     
    9494    $options = get_option('pecf_cat-list');
    9595   
    96     $args = array( 'taxonomy' => 'category');
     96    $args = array( 'taxonomy' => 'category', 'hide_empty' => 0);
    9797    $cat_list = get_categories($args);
    9898   
  • pe-category-filter/trunk/readme.txt

    r513918 r631367  
    11=== PE Category Filter ===
    22Contributors: khratos
    3 Tags: category, filter, category filter, exclude post, home page
     3Tags: category, filter, category filter, exclude post, home page, exclude from home
    44Donate link: http://asteriskfaqs.org/2012/03/03/general/make-a-donation.html
    55Requires at least: 3.0
    6 Tested up to: 3.3.1
    7 Stable tag: 1.0
     6Tested up to: 3.4.2
     7Stable tag: 1.1
    88
    99This plugin allows you to exclude posts that belong to certain categories from your home page.
     
    1111== Description ==
    1212
    13 This plugin allows you to **exclude** posts that belong to certain categories from your *home page*, while they will still be reachable
     13This plugin allows you to **exclude** posts that belong to certain categories from your **home page**, while they will still be reachable
    1414from the inner sections of your site.
    1515
    16 Please note that you should have at least one post in certaing category in order to be able to exclude that category's posts from Home Page it using this plugin.
     16This is an ad-hoc solution that aims to do **one** thing, and do it right.
    1717
    18 The focus of this plugin is simplicity, performance and correctness of the code.
     18- Please note the following:
    1919
    20 You can see this plugin in action here: http://asteriskfaqs.org , where the post in home page
    21 are exclusively the ones I have written, while others (automatically posted via email) are
    22 present in the inner sections.
     20* The functionality of this plugin can not be limited to a given widget of the home page. Example:
     21
     22You have a category "MyCategory" from which you will exclude posts from the **home page**.
     23A the same time, you want to display posts of "MyCategory" in a widget that is located **in the home page**.
     24
     25That would be overkilling. You don't need to *exclude* everything and do one exception, you need to *allow* everything and do one exception.
     26
     27* The focus of this plugin is simplicity, performance and correctness of the code.
     28
     29- You can see this plugin in action the following projects where the post in home page are exclusively the ones I have written, while others
     30(automatically posted via email) are present in the inner sections:
     31
     32* http://asteriskfaqs.org - Important VoIP community project.
     33* http://slackware-es.com - Slackware Linux documentation project (Spanish)
     34
    2335
    2436== Installation ==
    2537
    26381. Upload `pecf_catfilter` to the `/wp-content/plugins/` directory
    27 1. Activate the plugin through the 'Plugins' menu in WordPress
    28 1. Go to 'Settings' and choose which categories' posts you want to _exclude_ from the Home Page
     392. Activate the plugin through the 'Plugins' menu in WordPress
     403. Go to 'Settings' and choose which categories' posts you want to _exclude_ from the Home Page
    2941
    3042== Frequently Asked Questions ==
    3143
    32 None. Yet.
     44* I'm using the plugin and while it works as expected, I would like it to allow content from a filtered category to be displayed by
     45some other plugin. Is that possible?
     46
     47No. At least not for now. Read the description for more details.
    3348
    3449== Screenshots ==
     
    4156= 1.0 =
    4257* Stable release.
     58
     59= 1.1 =
     60* Allowing to exclude categories whether they have posts or not.
     61* Global code assessment to ensure compatibility with latest WP versions.
     62* Improving "readme" documentation.
Note: See TracChangeset for help on using the changeset viewer.