wpautop on section

Please try this $c = get_the_content(); instead of: $c = the_content(); since the_content() will echo the content instead of returning it. Or try this <section class=”post-content clearfix” itemprop=”articleBody”> <?php add_filter( ‘the_content’, ‘wpautop’ ); ?> <?php the_content(); ?> <?php remove_filter( ‘the_content’, ‘wpautop’ ); ?> </section>

How to obfuscate theme directory URLs

Use get_template_directory_uri(): $url = get_template_directory_uri() . ‘/images/myimage.jpg’; This function will always return the correct path to your theme. If you want to hide/shorten that URL, you could use an endpoint, maybe img. The downside is, you load the complete WordPress for each image request. Or use mod_rewrite: RewriteRule ^img/([a-z\d-])\.png /wp-content/themes/my_theme/img/$1.png [L] This will not work … Read more

How to multiply a post to test internal search results?

Well, there are ways to duplicate posts, but I don’t think that’s what you need. Check out http://wordpress.org/plugins/bulk-content-creator/, which is probably exactly what you’re after, and allows you to create many posts at once for test purposes. Otherwise, check out http://codex.wordpress.org/Theme_Unit_Test where you can get test content.