Posts Tagged ‘Wordpress’

Custom Community Theme for WordPress Blog

Friday, April 5th, 2013

Here the anothe one responsive theme for WordPress blog. Named by Custom Community because you can made custom theme for design. This theme ready for blog, portfolio website, news, online shop or social network. jQuery slideshow is the one feature that you can use easily. There are 100+ easy theme options with 20 widget areas, 5 special widgets and 2 custom WP 3.0 header menus. This theme support with latest WordPress version, BuddyPress, WooCommerce. don’t worry about plugin, because almost common plugins is supported.

Community WP Theme

Preview and download available in here via WordPress theme repository.

Rating 3.00 out of 5
[?]


Advertisement



Insert ads after one paragraph in WordPress content

Wednesday, March 27th, 2013

There are another way how to insert banner or text script advertisement after first paragraph insingle post content of WordPress blog. Just copy this code below:

<?php
    $paragraphAfter= 1;
    $content = apply_filters('the_content', get_the_content());
    $content = explode("</p>", $content);
    for ($i = 0; $i <count($content); $i++) {
    if ($i == $paragraphAfter) { ?>
<div>INSERT YOUR ADS SCRIPT HERE</div>
    <?php
    }
    echo $content[$i] . "</p>";
    } ?>
									

And replace the code

<?php the_content ?>
									

in single.php file of your WordPress theme.

Source code
http://wordpress.org/support/topic/determine-automatically-the-middle-of-the-post-from-word-count

Rating 3.00 out of 5
[?]


Advertisement