<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Patrick Galbraith &#187; wordpress</title>
	<atom:link href="https://www.pjgalbraith.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.pjgalbraith.com</link>
	<description>Web developer - Adelaide, Australia</description>
	<lastBuildDate>Tue, 23 Mar 2021 02:57:48 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.42</generator>
	<item>
		<title>Default Thumbnail Plus</title>
		<link>https://www.pjgalbraith.com/default-thumbnail-plus/</link>
		<comments>https://www.pjgalbraith.com/default-thumbnail-plus/#comments</comments>
		<pubDate>Wed, 07 Dec 2011 12:55:50 +0000</pubDate>
		<dc:creator><![CDATA[Patrick]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.pjgalbraith.com/?p=490</guid>
		<description><![CDATA[Automatically display a default Post Thumbnail image, either the first image attached to a post, or set default images for specific categories, tags, or custom taxonomies. Supports custom fields to ease upgrading. Download: http://wordpress.org/extend/plugins/default-thumbnail-plus &#160; &#160; Thumbnail Selection Hierarchy The hierarchy below determines what thumbnail will be chosen, in other words the plugin first checks [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Automatically display a default Post Thumbnail image, either the first image attached to a post, or set default images for specific categories, tags, or custom taxonomies. Supports custom fields to ease upgrading.</p>
<p><span style="font-size: 120%;">Download: <a href="http://wordpress.org/extend/plugins/default-thumbnail-plus">http://wordpress.org/extend/plugins/default-thumbnail-plus</a></span></p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="cmd" value="_s-xclick" /><br />
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHRwYJKoZIhvcNAQcEoIIHODCCBzQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYCaZlvTDY8AjevoWRxJlPzlpGzU9D0GJbRzFUnEk3pTpE90IG8Onf7faYS42Phz3kjVllfiU0+BsUNXz7OXuo1ZVwJUqguIRMsp8saPwnfy7p2ZdwtiNFeBBWUloVrWLKFVFiY1MvzwfRRYvhbxFUPFqd2agy+xzreSHORk2Hj8UjELMAkGBSsOAwIaBQAwgcQGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIlqjsBuetTU6AgaDqIs7SRXKXFp/yO/JKlTjq5w02BxDQNziDtoon3DNI0U5Fz2NBWkQKPnj7K5nV4+mt3CyMXqvb7sXowZcfWUaUlfRFutWuipIBlemg5vXSagjP082XLWrhadpAwqQYZlMybVs28a5U3aJ5jmg9j4OvhDyjYmR9o0Ozk9IXPxfa2eIMtmF871ewIxTDZr71pC2payTtnsnfvWe3pvEX5BxooIIDhzCCA4MwggLsoAMCAQICAQAwDQYJKoZIhvcNAQEFBQAwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29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BgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTEwODI5MDIwNDEwWjAjBgkqhkiG9w0BCQQxFgQU4pyEDB8dNzKzBYLjSvsgtbOIhtUwDQYJKoZIhvcNAQEBBQAEgYBTCvtZwMYNJhEAdDzrrrgxlzMyP4STFn9hFN6aSIass6D4Ouqo/N4VLljNg1SvdvzLmQATk/KMi6krXUpEzPAeU1tzMoXG0XQDzjcun0ItsmavABGAEsGvo4VbmUIWLhhyUatM4kWOJBShuxHZd7RMYV+7UdVOINwhatASOrPwtw==-----END PKCS7----- " /><br />
<input type="image" name="submit" src="https://www.paypalobjects.com/en_AU/i/btn/btn_donateCC_LG.gif" alt="PayPal — The safer, easier way to pay online." /><br />
<img src="https://www.paypalobjects.com/en_AU/i/scr/pixel.gif" alt="" width="1" height="1" border="0" /></form>
<p>&nbsp;<br />
&nbsp;<br />
<a href="http://www.pjgalbraith.com/wp-content/uploads/2011/12/screenshot-1.jpg"><img src="http://www.pjgalbraith.com/wp-content/uploads/2011/12/screenshot-1.jpg" alt="" title="dtp-1" width="652" height="859" class="alignleft size-full wp-image-533" style="border-bottom:1px solid #CCC; border-top:1px solid #CCC" /></a><br />
<span id="more-490"></span></p>
<h3>Thumbnail Selection Hierarchy</h3>
<p>The hierarchy below determines what thumbnail will be chosen, in other words the plugin first checks if the user has manually set a featured image. If not then it checks if it has a custom field containing an attachment id, and so on. Once the plugin gets to the last step if no default thumbnail image is set then no post thumbnail will be displayed.</p>
<ol>
<li>Featured Image</li>
<li>Custom Field</li>
<li>Image Attachment</li>
<li>Embedded image</li>
<li>Embedded video</li>
<li>Category/Tag/Taxonomy Thumbnail</li>
<li>Default Thumbnail</li>
</ol>
<h3>Add Filter (Category/Tag/Taxonomy Thumbnail)</h3>
<p>You can add filters which allow you to select a thumbnail for a specific category, tag, or custom taxonomy. The value field is required and must contain either a comma separated list of slug, id, or title for a existing category, tag, or custom taxonomy. Any post that does not have a post-thumbnail set and has the specified tag, or is a member of the category or taxonomy will show the default thumbnail specified.</p>
<h3>Use image attachment if available</h3>
<p>Automatically use the post&#8217;s first available image attachment for the thumbnail. This is useful for older posts that haven&#8217;t got a featured image set.</p>
<h3>Custom Field</h3>
<p>Enter a custom field key here, it&#8217;s value if set will become the default post thumbnail for that post. The custom field value can either be an Attachment ID, or a link to an image.</p>
<p><em>Note: If the custom field value contains a link to an image it will output a simple image tag and attempt to populate the width and height attributes. However the aspect ratio may not match other thumbnails. The plugin does not check if the image exists or is of valid type or size.<br />
</em></p>
<h3>Use embedded image if available</h3>
<p>Automatically use the post&#8217;s first available embedded image for the thumbnail. This is useful if you embed external images.</p>
<p><em>Note: This option does not work with has_post_thumbnail() or get_post_thumbnail_id(). If the &#8220;cache external images&#8221; option is set then the plugin will automatically resize, crop the image and store a local copy.</em></p>
<h3>Use embedded video if available</h3>
<p>Automatically use the post&#8217;s first available embedded video for the thumbnail (YouTube only).</p>
<p><em>Note: This option does not work with has_post_thumbnail() or get_post_thumbnail_id(). If the &#8220;cache external images&#8221; option is set then the plugin will automatically resize, crop the image and store a local copy.</em></p>
<h3>Excluded posts</h3>
<p>List of posts to be ignored by this plugin. Comma separated e.g. 10, 2, 7, 14.</p>
<p><em>Note: These posts may still display a thumbnail if one has been set manually (using the &#8220;Set featured image&#8221; button on the post page).</em></p>
<h3>Functions</h3>
<p>The following functions work to directly return post thumbnail even if the plugin hooks have been disabled. This allows you to disable the filters and call the plugin manually. This should only be used if you are creating a custom theme and can ensure that DefaultThumbnailPlus is installed.</p>
<p><strong>dpt_post_thumbnail_id($post_id, $size = null, $attr = &#8221;)</strong><br />
<em>Returns the post thumbnail ID. Doesn&#8217;t work with embedded images.</em></p>
<p><strong>dpt_post_thumbnail_html($post_id, $size = null, $attr = &#8221;)</strong><br />
<em>Directly calls the default post thumbnail function. Works the same as calling get_the_post_thumbnail().</em></p>
<p><strong>dpt_post_thumbnail_src($post_id, $size = null)</strong><br />
<em>Returns href to post thumbnail image.</em></p>
<hr />
<h3>Why can&#8217;t I see any thumbnails with my custom theme?</h3>
<p>A number of themes use <code>has_post_thumbnail()</code> to check if a post thumbnail exists before calling <code>the_post_thumbnail()</code> to display the thumbnail. The problem with this is that thumbnails that are linked to directly (either external images or video thumbnails) won&#8217;t return correctly for this check and therefore may not show.<br />
&nbsp;<br />
To fix this issue you will need to look for the following code in your theme:</p>
<pre><code class="php">if(has_post_thumbnail()) {
    the_post_thumbnail(...);
}
</code></pre>
<p>&nbsp;<br />
And simply remove the call to <code>has_post_thumbnail()</code> so you are left with this:</p>
<pre><code class="php">the_post_thumbnail(...);</code></pre>
<h4>TwentyEleven</h4>
<p>The header only works with image attachments, i.e. embedded images/video thumbnails won&#8217;t show. </p>
<p>The header attachment width also has to be greater than the custom-header width option (default 1000px). This is generally a good thing though since it prevents low resolution images from displaying in the header.</p>
<h4>WooThemes</h4>
<p>WooThemes call a function called <code>woo_image()</code> rather than using the default WordPress functionality. This causes the default post thumbnail to never show.</p>
<p>So to fix this you need to override the <code>woo_image()</code> function with a custom implementation that reverts to using WordPress&#8217;s in-built functions. To do this paste the following code into the <strong>TOP</strong> of the themes <code>functions.php</code> file found in <code>/wp-content/themes/your_themes_name</code> after the opening <code>&lt;?php</code> tag.</p>
<pre><code class="php">
//Override the default woothemes image function and revert to using the default wordpress function.
if ( ! is_admin() &#038;&#038; ! function_exists('woo_image')){
    function woo_image($args) {
        global $post;

        $size = null;
        $attr = array();
        $before = '';
        $after = '';
        $class = '';

        if ( !is_array($args) )
            parse_str( $args, $args );

        extract($args);

        if(empty($id))
            $id = $post->ID;

        if(isset($width) &#038;&#038; isset($height))
            $size = array($width, $height);

        $attr['class'] = 'woo-image '.$class;

        if(isset($alt))
            $attr['alt'] = $alt;

        $output = $before . get_the_post_thumbnail($id, $size, $attr) . $after;

        if($return == TRUE)
            return $output;
        else
            echo $output;
    }
}
</code></pre>
<p>&nbsp;<br />
<em>The downside is that it won&#8217;t recreate all of woo_image()&#8217;s features. However it shouldn&#8217;t cause issues with most themes.</em></p>
]]></content:encoded>
			<wfw:commentRss>https://www.pjgalbraith.com/default-thumbnail-plus/feed/</wfw:commentRss>
		<slash:comments>120</slash:comments>
		</item>
		<item>
		<title>Recent Posts Plus (WordPress Widget)</title>
		<link>https://www.pjgalbraith.com/recent-posts-plus/</link>
		<comments>https://www.pjgalbraith.com/recent-posts-plus/#comments</comments>
		<pubDate>Sat, 13 Aug 2011 10:15:01 +0000</pubDate>
		<dc:creator><![CDATA[Patrick]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.pjgalbraith.com/?p=253</guid>
		<description><![CDATA[An advanced version of the WordPress Recent Posts widget, allows display of thumbnails, post excerpt, author, comment count, and more. Provides options to trim the title and override the post order and type. Also includes a simple template parser so you can override the default output. Download: http://wordpress.org/extend/plugins/recent-posts-plus 1: Title Default: Recent Posts This field [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>An advanced version of the WordPress Recent Posts widget, allows display of thumbnails, post excerpt, author, comment count, and more. Provides options to trim the title and override the post order and type. Also includes a simple template parser so you can override the default output.</p>
<p><span style="font-size: 120%;">Download: <a href="http://wordpress.org/extend/plugins/recent-posts-plus">http://wordpress.org/extend/plugins/recent-posts-plus</a></span></p>
<p><span id="more-253"></span></p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="cmd" value="_s-xclick" /><br />
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHRwYJKoZIhvcNAQcEoIIHODCCBzQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3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QxFgQU4pyEDB8dNzKzBYLjSvsgtbOIhtUwDQYJKoZIhvcNAQEBBQAEgYBTCvtZwMYNJhEAdDzrrrgxlzMyP4STFn9hFN6aSIass6D4Ouqo/N4VLljNg1SvdvzLmQATk/KMi6krXUpEzPAeU1tzMoXG0XQDzjcun0ItsmavABGAEsGvo4VbmUIWLhhyUatM4kWOJBShuxHZd7RMYV+7UdVOINwhatASOrPwtw==-----END PKCS7----- " /><br />
<input type="image" name="submit" src="https://www.paypalobjects.com/en_AU/i/btn/btn_donateCC_LG.gif" alt="PayPal — The safer, easier way to pay online." /><br />
<img src="https://www.paypalobjects.com/en_AU/i/scr/pixel.gif" alt="" width="1" height="1" border="0" /></form>
<img class="size-full wp-image-264" title="screenshot-num" src="http://www.pjgalbraith.com/wp-content/uploads/2011/08/screenshot-num.jpg" alt="" width="266" height="696" />
<h3>1: Title</h3>
<p><em>Default: Recent Posts</em></p>
<p>This field sets the title of the widget. It works the same as every other widget.</p>
<h3>2: Number of posts</h3>
<p><em>Default: 5</em></p>
<p>Changes how many posts are displayed in the widget. Enter &#8216;-1&#8242; to display all posts.</p>
<h3>3: Include post thumbnail</h3>
<p><em>Default: no</em></p>
<p>Displays the post thumbnails of each post. </p>
<p><em>If this option is hidden you may not have a theme with post-thumbnails enabled. You can manually enable and add post-thumbnails to each post or you can download the <a href="http://www.pjgalbraith.com/2011/12/default-thumbnail-plus/">Default Thumbnail Plus</a> plugin automatically display a default image.</em></p>
<p style="text-align: center;"><img class="size-full wp-image-271 aligncenter" title="rpp-step3" src="http://www.pjgalbraith.com/wp-content/uploads/2011/08/rpp-step3.jpg" alt="" width="228" height="148" style="border: 1px solid #CCC" /></p>
<h3>4: Include post excerpt</h3>
<p><em>Default: no</em></p>
<p>Displays the post excerpt of each post.</p>
<h3>5: Show expert options</h3>
<p><em>Default: no</em></p>
<p>Show/hide the expert options panel. These options should be used with more care.</p>
<h3>6: Limit post title</h3>
<p><em>Default: <strong>(no limit)</strong></em></p>
<p>Limits the numbers of characters or words to display of each posts title.<br />
<strong>Example: </strong> For the post title &#8220;Look at this title&#8221; setting this option to 7 chars would result in &#8220;Look at&#8230;&#8221;</p>
<h3>7: Limit post excerpt</h3>
<p><em>Default: <strong>(no limit)</strong></em></p>
<p>Limits the numbers of characters or words to display of each posts excerpt.</p>
<h3>8: Limit ellipsis</h3>
<p><em>Default: &#8230;</em></p>
<p>Sets the string to append to post titles or excerpts that have been shortened.</p>
<h3>9: Post date format</h3>
<p><em>Default: M j</em></p>
<p>Sets the PHP date format to use when displaying the post date.<br />
See <a href="http://php.net/manual/en/function.date.php" target="_blank">http://php.net/manual/en/function.date.php</a> for overview of the options available.</p>
<p><em>Note: the date format can be overriden in the output template, which allows for multiple date formats in one entry, see section &#8220;12: Widget output template&#8221;.</em></p>
<h3>10: Thumbnail size</h3>
<p><em>Default: 50 x 50</em></p>
<p>Sets the size of the post thumbnail in pixels.</p>
<h3>11: WP_Query options</h3>
<p>This is an advanced option that modifies what posts are shown in the widget. This option specifies extra arguments to use in the <a href="http://codex.wordpress.org/Class_Reference/WP_Query" target="_blank">WP_Query request</a> and as such is very flexible even allowing this widget to show pages rather than posts, show oldest posts first, or filter posts by tag or category. The WP_Query options must be specified in valid JSON format (validate here <a href="http://jsonlint.com/">http://jsonlint.com/</a>).</p>
<p><strong>These are the default args that are sent to WP_Query:</strong></p>
<pre><code class="javascript">{
"post_type": "post",
"posts_per_page": <strong>&lt;same as Number of posts setting&gt;</strong>, 
"orderby": "date",
"order": "DESC"
}
</code></pre>
<p><strong>List of options:</strong></p>
<pre><code class="javascript">{
"post_type": "post", //post, page, revision, attachment, any
"post_status": "publish", //publish, pending, draft, auto-draft, future, private, inherit, trash, any.
"posts_per_page": "5", //overrides number of posts setting
"offset": "3", //number of posts to skip over 
"post__in": [2, 3, 4], //only show posts 2, 3 and 4
"post__not_in": [2, 3, 4], //exclude posts 2, 3 and 4
"ignore_sticky_posts": "1", //ignore sticky posts or not. Default value is 0, don't ignore (requires WordPress 3.1+).
"caller_get_posts": "1", //ignore sticky posts or not. Deprecated as of Version 3.1 in favor of 'ignore_sticky_posts'.
"author": "1", //author ID
"author_name": "john", //post author's name, use 'user_nicename' (NOT name)
"orderby": "date", //none, ID, author, title, date, modified, parent, rand, comment_count, meta_value, meta_value_num  
"order": "DESC", //ASC or DESC
"tag": "cooking,baking", //display posts that have "either" of these tags
"tag": "bread+baking+recipe", //display posts that have "all" of these tags
"tag_id": "13",
"cat": "1, 2, -3", //category ID 1, 2 but not 3
"category_name": "articles,news",
"year": "2011",
"meta_query" : [] //see below
}</code></pre>
<p>For a full listing see <a href="http://codex.wordpress.org/Class_Reference/WP_Query" target="_blank">http://codex.wordpress.org/Class_Reference/WP_Query</a></p>
<h4>Ordering by custom fields</h4>
<p>You can change the sort order to be based on a specified custom field using <em>meta_value</em> and <em>meta_value_num</em> as the <em>orderby</em> option. </p>
<p><em>Note: The difference between meta_value and meta_value_num is that the meta_value_num is sorted as a numeric value (i.e. meta_value would be ordered as a string e.g. 1, 3, 34, 4, 56, 6 whereas meta_value_num would be 1, 3, 4, 6, 34, 56).</em></p>
<p>The following example would order posts by custom field <em>rating</em> showing in order of highest rated to lowest rated.</p>
<pre><code class="javascript">{
     "meta_key": "rating",
     "order": "DESC",
     "orderby": "meta_value_num"
}</code></pre>
<h4>Utilizing the meta_query option</h4>
<p><em>Note: This option requires WordPress 3.1+</em></p>
<p>Filter or show posts with a certain custom field value using the meta_query option. </p>
<p>The following example would display posts with a custom field called <em>mood</em> with a value of <em>happy</em>:</p>
<pre><code class="javascript">{
    "meta_query": [
        {
           "key": "mood", //Custom field key
           "value": "happy", //Custom field value
           "type": "CHAR", //Custom field type. Possible values are 'NUMERIC', 'BINARY', 'CHAR', 'DATE', 'DATETIME', 'DECIMAL', 'SIGNED', 'TIME', 'UNSIGNED'
           "compare": "=" //Operator to test. Possible values are '=', '!=', '>', '>=', '<', '<=', 'LIKE', 'NOT LIKE', 'IN', 'NOT IN', 'BETWEEN', 'NOT BETWEEN'
        }
    ]
}</code></pre>
<p>The following example would display posts if they have a custom field <em>rating</em> of between <em>5 and 10</em> or if they have a custom field <em>mood</em> with a value of <em>happy</em>:</p>
<pre><code class="javascript">{
    "meta_query": {
        "relation": "OR", //Possible values are 'AND', 'OR'
        "0": {
            "key": "rating",
            "value": [5, 10],
            "type": "NUMERIC",
            "compare": "BETWEEN"
        },
        "1": {
            "key": "mood",
            "value": "happy",
            "type": "CHAR",
            "compare": "="
        }
    }
}</code></pre>
<h3>12: Widget output template</h3>
<p>This is an advanced option that modifies the output of the widget. You can modify the output with template tags and add custom classes or tags for styling.</p>
<p>By default the widget outputs posts in this format:</p>
<pre><code class="html">&lt;li&gt;
{THUMBNAIL}
&lt;a title=&quot;{TITLE_RAW}&quot; href=&quot;{PERMALINK}&quot;&gt;{TITLE}&lt;/a&gt;
{EXCERPT}
&lt;/li&gt;</code></pre>
<p>You can modify the output by including the following template tags:</p>
<pre><code class="no-highlight">{ID} The post ID
{THUMBNAIL} The post thumbnail IMG tag if it exists, otherwise nothing
{TITLE_RAW} The post title
{TITLE} The post title, will be trimmed if it exceeds "Option 6: Limit post title chars"
{EXCERPT_RAW} The post excerpt
{EXCERPT} The post excerpt, will be trimmed if it exceeds "Option 7: Limit post excerpt chars"
{PERMALINK} The post permalink url
{DATE} The post date, the format is defined by the "Option 9: Post date format" setting
{DATE[php_date_format]} As of 1.0.4: Customized date format which overrides the default date format setting. E.g. {DATE[l jS F Y]} would display like "Monday 1st January 2011"
{AUTHOR} The post author name
{AUTHOR_LINK} The post author website url
{AUTHOR_AVATAR} As of 1.0.7: Displays the author's avatar if available
{COMMENT_COUNT} The total number of comments, Trackbacks, and Pingbacks for the post
{META[name]} As of 1.0.5: Displays the value of the specified custom field. E.g. {META[Currently Reading]} or {META[Rating]}. Note: Only returns the first result.
{ELLIPSIS}...{/ELLIPSIS} As of 1.0.9: Overrides option "8: limit ellipsis" for the excerpt. 
                         You can use other templates tags within the {ELLIPSIS} tags but not PHP and it will only be appended to the excerpt if it is truncated. 
                         Example: {ELLIPSIS}... &lt;a href=&quot;{PERMALINK}&quot;&gt;(more)&lt;/a&gt;{/ELLIPSIS}
</code></pre>
<h4>Using raw PHP in the Widget output template</h4>
<p>As of 1.0.7 you can add raw PHP code to the widget output template.</p>
<p><em>Note: This will require the PHP code you enter to be run though eval which will likely have a small performance penalty. However if you don't enter any PHP code eval will not be run. Be careful not to give untrusted users permission to modify widget settings since it could be a potential security risk.</em></p>
<p>The following example displays the author's avatar at 32px size:</p>
<pre><code class="php">&lt;li&gt;
&lt;?php echo get_avatar(get_the_author_meta('user_email'), 32); ?&gt;
&lt;a title=&quot;{TITLE_RAW}&quot; href=&quot;{PERMALINK}&quot;&gt;{TITLE}&lt;/a&gt;
{EXCERPT}
&lt;/li&gt;</code></pre>
<p>You can access some of the existing template tag values with the $widget_ouput_template_params array e.g. $widget_ouput_template_params['{ID}'] contains the current posts ID.</p>
<hr />
<h2>Examples of Styling the Output</h2>
<p>The look of the widget output depends a lot on what theme you are using. By default the output looks somewhat like the image below. Thankfully we can improve this with very little effort and a few additions to your themes stylesheet.</p>
<img src="http://www.pjgalbraith.com/wp-content/uploads/2011/08/rpp-example1.jpg" alt="" title="rpp-example1" width="232" height="328" class="aligncenter size-full wp-image-516" />
<p>The first thing you need to do is go to Appearance -> Editor and select the Stylesheet option on the right (it should be selected by default but just make sure). After that paste one of the following styles at the bottom of the stylesheet depending on the look you want. </p>
<p><em>Note these are just basic examples you can do a lot more with more with CSS. These examples also depend a lot on the theme you are using, more complex themes may require additional styling. Hopefully these examples can point you in the right direction.</em></p>
<img src="http://www.pjgalbraith.com/wp-content/uploads/2011/08/rpp-example2.jpg" alt="" title="rpp-example2" width="232" height="334" class="aligncenter size-full wp-image-517" />
<pre><code>.widget_recent_entries li {
    clear: both;
    margin: 5px 0;
}
.widget_recent_entries .wp-post-image {
    vertical-align: text-top;
    margin: 0 5px 0 0;
}</code></pre>
<img src="http://www.pjgalbraith.com/wp-content/uploads/2011/08/rpp-example3.jpg" alt="" title="rpp-example3" width="255" height="316" class="aligncenter size-full wp-image-520" />
<pre><code>.widget_recent_entries li {
    clear: both;
    margin: 15px 0;
}

.widget_recent_entries .wp-post-image {
    float: left;
    margin: 0 5px 0 0;
}

.widget_recent_entries li p {
    margin-top: 5px;
    color: #707070;
}</code></pre>
<img src="http://www.pjgalbraith.com/wp-content/uploads/2011/08/rpp-example4.jpg" alt="" title="rpp-example4" width="232" height="220" class="aligncenter size-full wp-image-518" />
<pre><code>.widget_recent_entries li {
    clear:both;
    margin: 5px 0;
}

.widget_recent_entries .wp-post-image {
    vertical-align: middle;
    margin: 0 5px 0 0;
}</code></pre>
<p>The above example has the thumbnail size set to 25px x 25px.</p>
<img src="http://www.pjgalbraith.com/wp-content/uploads/2011/08/rpp-example5.jpg" alt="" title="rpp-example5" width="232" height="430" class="aligncenter size-full wp-image-519" />
<pre><code>.widget_recent_entries li {
    clear:both;
    margin: 10px 0;
    text-align: center;
}

.widget_recent_entries .wp-post-image {
    margin: 0 5px 0 0;
}

.widget_recent_entries li a {
    display: block;
}</code></pre>
<p>The above example has the thumbnail size set to 100px x 100px.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.pjgalbraith.com/recent-posts-plus/feed/</wfw:commentRss>
		<slash:comments>358</slash:comments>
		</item>
	</channel>
</rss>
