Smoosh faces

Introducing the pugs, pekes, and other mixes…..

function replace_content($content) {
$pattern = '# $replacement = ' $content = preg_replace($pattern, $replacement, $content);
return $content;
add_filter('the_content', 'replace_content');

// Grab the list of posts matching the specified criteria
$postslist = get_posts( $args );
// Loop through the posts displaying the name and the_content as an excerpt if (read more tag) has been placed in the post
foreach ($postslist as $post) {
setup_postdata( $post );
// Set the post's name (used as a link) as a global, so the replace_content filter can access it
$GLOBALS['the_content_post_name'] = $post->post_name;
// Print the post's title as a link to the post
echo '


// Print the post's excerpt HTML (minus the 'read more' link, we'll print that ourselves)
echo '


// Print the post's 'read more' link
echo 'Learn more about '.$post->post_title.'...';
echo '