Plugin Directory

Changeset 1482808


Ignore:
Timestamp:
08/24/2016 07:13:50 PM (10 years ago)
Author:
dancoded
Message:

Version 1.2

Location:
dmg-related-pages-widget/trunk
Files:
22 added
2 edited

Legend:

Unmodified
Added
Removed
  • dmg-related-pages-widget/trunk/readme.txt

    r1468706 r1482808  
    11=== DMG Related Pages Widget ===
    22Contributors: dancoded
    3 Tags: page widget, menu, css, list pages
     3Tags: page widget, menu, css, list pages, related pages
    44Donate link: http://dancoded.com/wordpress-plugins/
    55Requires at least: 3.1
    6 Tested up to: 4.5.3
    7 Stable tag: 1.0.2
    8 License: GPLv2 or later
    9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
     6Tested up to: 4.6
     7Stable tag: 1.1
     8License: GPLv3 or later
     9License URI: http://www.gnu.org/licenses/
    1010
    11 Widget that displays a list of pages related to the current page with advanced options to control which pages are shown and add CSS classes.
     11Widget that displays a list of pages related to the current page in your sidebar. Advanced options allow you to control which pages are shown, add CSS classes & make the title link.
    1212
    1313== Description ==
     
    1818You can also enter class(es) to be applied to the widget wrapper or the list (ul element).
    1919
    20 If the widget is on a page that is not hierarchical, nothing is displayed.
     20If the widget is on a page that is not hierarchical, or if there are no related pages, nothing is displayed.
     21
     22Two hooks are available to filter the title and text; `dmg_related_pages_widget_title` for the title and `dmg_related_pages_widget_text` for the text.
     23
     24For example, to change the title on a single page or post, you could add this to your functions.php file:
     25
     26
     27`function myTitleFilter( $title )
     28{
     29    if( is_singular() )
     30    {
     31        return "<strong>$title</strong>";
     32    }
     33    else
     34    {
     35        return $title;     
     36    }
     37}
     38add_filter( 'dmg_related_pages_widget_title' , 'myTitleFilter');`
     39
     40More information about this plugin can be found at <http://dancoded.com/wordpress-plugins/related-pages-widget/>.
    2141
    2242== Adding CSS Class(es) ==
     
    2444Enter strings, either space or comma seperated, which will be applied as CSS classes to the widget wrapper and/or the list wrapper. These classes are sanitized using the `sanitize_html_class()` function built in to Wordpress.
    2545
     46== Make the Title a link ==
     47
     48Enter a valid URL to make the title a link.
     49
    2650== Installation ==
    27511. Upload the plugin files to the `/wp-content/plugins/dmg-related-pages-widget` directory, or install the plugin through the WordPress plugins screen directly.
    28 1. Activate the plugin through the \'Plugins\' page in the WordPress admin area
    29 1. Drag onto any active sidebar on the \'Appearance > Widgets\' page
     521. Activate the plugin through the 'Plugins' page in the WordPress admin area
     531. Drag onto any active sidebar on the 'Appearance > Widgets' page
    3054
    3155== Changelog ==
    32 = 1.0.1 =
     56= 1.1 =
     57Added Title URL field to make title a link
     58Tidied up readme
     59Tested in WP 4.6
     60= 1.0.2 =
    3361Corrected Title!
    3462= 1.0.1 =
Note: See TracChangeset for help on using the changeset viewer.