<?
/**
 * 
 * 
 * 
 */
/*
Plugin Name: Andy's List Subpage
Plugin URI: http://barsnesssolutions.com
Description: Just type {list} in each page or post that you want your subpages listed
Author: Andy Stramer
Version: 1.0
Author URI: http://barsnesssolutions.com
*/

add_filter('the_content', 'checkSubs');

function checkSubs($text)
{
	global $id;
	if(strpos($text, '{list}'))
	{
		$replace = '<ul class="subpage-style">'.wp_list_pages("title_li=&child_of=$id&echo=0").'</ul>';
		$text = str_replace('{list}', $replace, $text);
	}
	return $text;
}
?><?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>Commenti a: Newsletter</title>
	<atom:link href="http://www.personal-legno.com/newsletter/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.personal-legno.com</link>
	<description>aeroabrasione  porte finestre infissi tavoli sedie mobili arredamento complementi arredo</description>
	<lastBuildDate></lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.9.40</generator>
</channel>
</rss>
