WordPress How-To Tag's Archives
How to Create user-defined RSS feeds in WordPress
Posted by Muhammad Furqan Abid in How To, Tutorials on September 22, 2009
If you need a custom RSS feed, like for example, a feed indexing only somes categories + tags, or if you redirected all WordPress RSS feeds to Feedburner but still want to be able to get a category feed, the solution is to use a page template.
Create a new file and simply paste the following code in this file. After pasting save it with the name “my-custom-feed.php” and save it in your theme directory.
How to Schedule a Cron Events in your WordPress Blog?
Posted by Glance World Admin in How To on August 17, 2009
Schedules a hook which will be executed by the WordPress actions core on a specific interval, specified by you. The action will trigger when someone visits your WordPress site, if the scheduled time has passed.
In this tutorial, I’ll show you how you create an event that will be executed once hourly, or daily, etc.
Secure your WordPress Blog with 10 easy steps
Posted by Glance World Admin in Security, Tips on May 16, 2009
Securing your blog is important. With WordPress so popular these days, it’s becoming a bigger and bigger target for hackers. In this post we’ll look at ten easy ways to secure your WordPress blog.
Manually reset your WordPress password
Posted by Glance World Admin in How To on May 13, 2009
What to do if you lost your WordPress password? The easier is to use PhpMyAdmin and execute a simple SQL query to update it. Here’s how to proceed. Click here to read more …
Show related posts without a plugin
Posted by Muhammad Furqan Abid in How To on May 12, 2009
Displaying related posts is a very great way to help visitors staying longer on your blog. You can use a plugin, but you also can use tags and a custom code to show related posts. Let’s see how to do!
This code will display related posts based on the current post tag(s). It must be pasted within the loop.
<?php
//for use in the loop, list 5 post titles related to first tag on current post
$tags = wp_get_post_tags($post->ID);
if ($tags) {
echo ‘Related Posts’;
$first_tag = $tags[0]->term_id;
$args=array(
’tag__in’ => array($first_tag),
’post__not_in’ => array($post->ID),
’showposts’=>5,
’caller_get_posts’=>1
);
$my_query = new WP_Query($args);
if( $my_query->have_posts() ) {
while ($my_query->have_posts()) : $my_query->the_post(); ?>
<p><a href=”<?php the_permalink() ?>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></a></p>
<?php
endwhile;
}
}
?>
How to Only Show Posts With a Specific Custom Field
Posted by Glance World Admin in How To on May 11, 2009
Sometimes you only want to show posts that you’ve added a specific custom field to. For instance, lets say you write songs and movie reviews and for each you give them a custom field “review_type” with the value set to either “songs” or “movie”. So how would you show posts that are only movie reviews? Easily! Click here to read more …
Display your number of tweets in full text mode on your WordPress blog
Posted by Glance World Admin in How To on May 10, 2009
Twitter is obviously a very useful tools for bloggers. Did you ever wanted to know how many times your posts are sent to Twitter by your readers? If yes, just read on and learn how to know it, and display it on your blog, in full text mode.






