[ Tag Archive ]


Retrieve and Display Images from a WordPress Post

Posted on March 10, 2009  |  Category: Tutorials

I have already mentioned a few ways to do this but I have discovered a few problems with my old code. I have improved this one quite a bit so I felt that I should just delete my old suggestions and offer you the best technique I have discovered.

Read More »


A Few Things to Keep In Mind When Using the More Tag in WordPress

Posted on February 26, 2009  |  Category: Tutorials

I just had someone ask me why everything on their front page became bolded when they placed <?php the_content('(more')); ?> in their code to use in conjunction with the more tag in their posts. It took me a while to figure it out but the solution is pretty simple.

Read More »


Excerpt or Content Word Limit in WordPress: Redux

Posted on February 16, 2009  |  Category: Tutorials

This is just a revamp of a function I wrote a while back to add the ability to limit the number of words displayed when you call the excerpt or content. As it stands, the max number of words for the excerpt is 55. There is a new function with WP 2.9 to increase this number. Check out Quick & Easy Excerpt Mods Coming in WordPress 2.9 for more on that subject.

Read More »


Removing Images from a WordPress Post: Redux

Posted on February 16, 2009  |  Category: Tutorials

I just discovered some issues with this code so I fiddled around and discovered a better way to code it.

Here is a better version to use.

<?php
$content = get_the_content();
$postOutput = preg_replace('/<img[^>]+./','', $content);
echo $postOutput;
?>

Read More »