Title: DMG Related Pages Widget
Author: dancoded
Published: <strong>August 5, 2016</strong>
Last modified: August 24, 2016

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/dmg-related-pages-widget.svg)

# DMG Related Pages Widget

 By [dancoded](https://profiles.wordpress.org/dancoded/)

[Download](https://downloads.wordpress.org/plugin/dmg-related-pages-widget.1.1.1.zip)

 * [Details](https://wordpress.org/plugins/dmg-related-pages-widget/#description)
 * [Reviews](https://wordpress.org/plugins/dmg-related-pages-widget/#reviews)
 *  [Installation](https://wordpress.org/plugins/dmg-related-pages-widget/#installation)
 * [Development](https://wordpress.org/plugins/dmg-related-pages-widget/#developers)

 [Support](https://wordpress.org/support/plugin/dmg-related-pages-widget/)

## 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/](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.

## Screenshots

[[

## Installation

 1. Upload the plugin files to the `/wp-content/plugins/dmg-related-pages-widget` directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ page in the WordPress admin area
 3. Drag onto any active sidebar on the ‘Appearance > Widgets’ page

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“DMG Related Pages Widget” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ dancoded ](https://profiles.wordpress.org/dancoded/)

[Translate “DMG Related Pages Widget” into your language.](https://translate.wordpress.org/projects/wp-plugins/dmg-related-pages-widget)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/dmg-related-pages-widget/),
check out the [SVN repository](https://plugins.svn.wordpress.org/dmg-related-pages-widget/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/dmg-related-pages-widget/)
by [RSS](https://plugins.trac.wordpress.org/log/dmg-related-pages-widget/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.1.1

Corrected typo readme.txt

#### 1.1

Added Title URL field to make title a link

Tidied up readme

Tested in WP 4.6

#### 1.0.2

Corrected Title!

#### 1.0.1

Added screenshot

#### 1.0

 * Initial version

## Meta

 *  Version **1.1.1**
 *  Last updated **10 years ago**
 *  Active installations **30+**
 *  WordPress version ** 3.1 or higher **
 *  Tested up to **4.6.30**
 * Tags
 * [css](https://wordpress.org/plugins/tags/css/)[list pages](https://wordpress.org/plugins/tags/list-pages/)
   [menu](https://wordpress.org/plugins/tags/menu/)[page widget](https://wordpress.org/plugins/tags/page-widget/)
   [related pages](https://wordpress.org/plugins/tags/related-pages/)
 *  [Advanced View](https://wordpress.org/plugins/dmg-related-pages-widget/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/dmg-related-pages-widget/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/dmg-related-pages-widget/reviews/)

## Contributors

 *   [ dancoded ](https://profiles.wordpress.org/dancoded/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/dmg-related-pages-widget/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://dancoded.com/wordpress-plugins/)