December 29, 2009
When you would use excluded categories:
When using WordPress as more of a content management system (CMS) than a blogging platform, there are many things that you need control over. One of them is special-case categories.
- Frequently asked questions
- Testimonials
- Case studies
- Press releases
When you have a category of posts that you don’t want to have comments, publishing dates, post author, etc., you can define a list of excluded categories. In most cases, you should use Category Templates to achieve this functionality, but that is not always practical or the best option. Read more&hellip
Read the full article →
October 2, 2009
I am using the ImageScaler plugin for WordPress on a project, and I like what it does, but it adds a non-standards-compliant attribute to images, such as:
<img class="" src="http://www.example.com/imagescaler/generated-image.jpg" alt="Example" width="258" height="234" imagescaler="http://www.example.com/imagescaler/original-image.jpg" />
To strip imagescaler’s imagescaler attribute, add the following into your functions.php file:
add_filter('the_content', 'strip_imagescaler');
function strip_imagescaler($content) {
$content = preg_replace('/imagescaler="(.*?)".?/s','', $content);
return $content;
}
Read the full article →