Adding more text to a post, after it was published

Your best bet is to use the the_content filter hook and add your content to the post “on the fly” for ex: add_filter(‘the_content’,’add_my_extra_content’); function add_my_extra_content($content){ $my_extra = “<h5>this is the extra content</h5>’; //add before post content // return $my_extra.$content; //add after post content return $content.$my_extra.; }

Failed to Open Stream: Permission Denied While Writing to an XML File in a WordPress Plugin

Check folder permissions too. Also See this post http://www.php.net/manual/en/function.fopen.php#105465 – suggests he had to change to absolute from relative to get around error message. Set of debug suggestions here: http://www.wrensoft.com/forum/showthread.php?t=786 1) folder permissions 2) upper/lowercase 3) abs/relative path and finally it turned out to be an extra space somewhere,

Function: Add link to / inside div

Why not do this with jQuery? It would be a very simple, here’s a sample, provided you have a means to get the blog’s URL into the jQuery code: jQuery(document).ready(function(){ jQuery(‘.header-object img’).wrap(‘<a href=”#blog url here#”></a>’); }); This will wrap <a> tags around an image inside the .header-object class. To implement this into your code, it … Read more

$paged always 0 on plugin’s custom page

I resolved this myself. The problem being: add_rewrite_rule(‘^foobar?’,’index.php?is_foobar_page=1′,’top’); Which prevents any other query_vars from being created. To resolve this, a slightly more complicated rewrite rule combo is set up: add_rewrite_rule(‘^foobar?$’,’index.php?is_foobar_page=1′,’top’); add_rewrite_rule(‘foobar/page/([0-9]+)?$’,’index.php?is_foobar_page=1&paged=$matches[1]’,’top’); This takes into consideration the creation of the plugin’s subpage ‘foobar’ and also allows for pagination within this page. Hope this helps someone.