DMG Related Pages Widget

DMG Related Pages Widget Install Statistics

0
100%
Today: 0 Yesterday: 0 All-time: 4,322 downloads
DMG Related Pages Widget Icon

Try plugin: DMG Related Pages Widget

We'll create fresh WordPress site with DMG Related Pages Widget installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About DMG Related Pages Widget

Widget 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 …

0


0


0


0


0

updated: 8 years ago
since: 8 years ago
author: Dan Gifford

Description

A simple widget that displays a list of pages related to the current page.

You can choose to show either siblings pages (on the same level), child pages or both, and set how many levels of child pages to show.

You can also enter class(es) to be applied to the widget wrapper or the list (ul element).

If the widget is on a page that is not hierarchical, or if there are no related pages, nothing is displayed.

A hook is available to filter the title: dmg_related_pages_widget_title.

For example, to change the title on a single page or post, you could add this to your functions.php file:

function myTitleFilter( $title )
{
    if( is_singular() )
    {
        return "<strong>$title</strong>";
    }
    else
    {
        return $title;      
    }
}
add_filter( 'dmg_related_pages_widget_title' , 'myTitleFilter');

More information about this plugin can be found at http://dancoded.com/wordpress-plugins/related-pages-widget/.

Adding CSS Class(es)

Enter 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.

Make the Title a link

Enter a valid URL to make the title a link.