Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php while (have_posts()): the_post(); ?>
- <h3><?php the_title(); ?></h3>
- <img style="float: left; padding: 13px 20px 0px 0px;" src="<? echo catch_that_image(); ?>" width="100">
- <?php the_excerpt(); ?>
- <p><a href="<?php the_permalink(); ?>">Read more...</a></p>
- <?php endwhile; ?>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <?php require('/the/path/to/your/wp-blog-header.php'); ?>
- <?php echo esc_html(get_the_excerpt()); ?>
- <?php header("Content-type: text/html; charset=UTF-8");?>
- <?php remove_filter( "the_excerpt", "wptexturize"); ?>
- function local_fix_quotes($in) {
- $in = str_replace("“", '"', $in);
- $in = str_replace("”", '"', $in);
- $in = str_replace("’", "'", $in);
- $in = str_replace("‘", "'", $in);
- $in = str_replace("–", "-", $in);
- $in = str_replace("…", "...", $in);
- $in = str_replace("xC2xA0",' ',$in);
- $in = str_replace("xE2x80x99","'",$in);
- $in = str_replace("xE2x80x9C",'"',$in);
- $in = str_replace("xE2x80x9D",'"',$in);
- $in = str_replace("xE2x80x93",'-',$in);
- return $in;
- }
- add_filter( "the_excerpt", "local_fix_quotes" );
- <?php
- define('WP_USE_THEMES', false);
- require_once('./wp-blog-header.php');
- remove_filter( "the_excerpt", "wptexturize");
- ?>
- <html>
Add Comment
Please, Sign In to add comment