FacebookTwitter

Best Ways to Secure WordPress

By on Feb 27, 2011 in Wordpress Tutorials | 0 comments

It’s a common issue that password hackers wander challenging the techno-minds and website owners who hack upon blogs and websites pilfering the secure information. The damage caused is inimitable to fit the original stuff, hitting the popularity of the blog over their top rank in the search engines that earns more profit. WordPress Website – Security How to secure your WordPress Website from hackers and malwares has always been a big question under critical circumstances! So here go with some of the hacking tips and ways to control and prevent malicious attacks to keep up security factors. WP Security scans WP Security Lock Secure Files Version upgradation Password Safety WP Security scans Blogs can be set with freely available plug-in WP DB Backup, which restores or secures data back to the last settings. WP Security Scan free plug-in aids for blog safety.WordPress Firewall...

How to Display Recent Posts in WordPress

By on Dec 14, 2010 in Wordpress Tutorials | 0 comments

WordPress have lots of potential as it has wide range of codes and plugins which can be used to extend its functionality.There are many guides and tutorials are also available. Today we come up with a snippet of code which one can use to display recent posts in wordpress. To display recent posts in wordpress just paste the code below where you want the recent posts to appear. <?php query_posts('showposts=5'); ?> <ul> <?php while (have_posts()) : the_post(); ?> <li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li> <?php endwhile;?> </ul> This will help you display recent posts in wordpress if you are looking for more guides related to wordperss then keep checking this blog frequently and you will find more cool tutorials and info related to...

How to Insert Ads within your Post Content in WordPress

By on Dec 14, 2010 in Wordpress Tutorials | 0 comments

If you have written huge number of posts and want to insert and ad within the post content then its not possible to edit all the posts and put the ad code individually in each post. If you wan to insert ads within your post content in wordpress then follow the steps below. Open single.php file located in your theme folder and look for the code that would look something like shown below: <?php the_content(); ?> Replace that code with the codes below: <?php $paragraphAfter= 1; //display after the first paragraph $content = apply_filters('the_content', get_the_content()); $content = explode("</p>", $content); for ($i = 0; $i <count($content); $i ) { if ($i == $paragraphAfter) { ?> <div>Your Text / Ads Go Here</div> <?php } echo $content[$i] . "</p>"; } ?> You may change the number of paragraphs by changing $paragraph After...

How to Create “send this to twitter” Button in WordPress

By on Dec 14, 2010 in Wordpress Tutorials | 0 comments

Twitter is one of the most popular social network basically its a microblogging platform where people love to share the stuff of their interest.If your posts is shared over twitter by some of your readers this may bring some new readers to your blog. To make it easy to share your posts on twitter just create a button “send this to twitter” in your posts page.Follow the instructions below to create the button. Simply paste the following code on your single.php file, within the loop: <a href="http://twitter.com/home?status=Currently reading <?php the_permalink(); ?>" title="Click to send this page to Twitter!" target="_blank">Share on Twitter</a> Now visitors can share your posts on twitter and this may bring some new readers to your...

How to List Scheduled Posts in WordPress

By on Dec 14, 2010 in Wordpress Tutorials | 0 comments

One can schedule posts in wordpress to be published on later dates or after some hours or days it may be anything depending on your need.If you are going for vacation you can schedule posts to be published when you are not available to update your blog. You can show you visitors the scheduled posts in sidebar to do so just open sidebar.php and paste the following code: <?php $my_query = new WP_Query('post_status=future&order=DESC&showposts=5'); if ($my_query->have_posts()) { while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?> <li><?php the_title(); ?></li> <?php endwhile; } ?> That’s all you are done now this will show the scheduled posts in your...

How to Insert Adsense After First Post in WordPress

By on Dec 14, 2010 in Wordpress Tutorials | 0 comments

Have you ever wondered how to insert adsense after only first post in wordpress if so today we have come up with the solution for same. Its highly asked question that how to insert adsense after first post in wordpres its very very simple.Just follow the instructions below and you are done. Simply edit index.php file of your theme and look for the following code: <?php endwhile; ?> Immediately before this code, place the following code: <?php if(!$show_ads){ ?> Insert Code Here <?php $show_ads = 1; } ?> This works fine when its allowed to show only 3 Adsense ads on a page so you can show one after first post, one in sidebar and another one in...