How To Archives
How to Disable Syntax Highlighting in WordPress 2.8?
Posted by Muhammad Furqan Abid in How To on October 02, 2009
One of WordPress 2.8 new features is syntax highlighted editor for WordPress files. While the idea was exiting, I must admit I didn’t enjoyed using this new editor.
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.
How to Highlight Search Terms with jQuery?
Posted by Glance World Admin in How To, Tips, Tutorials on August 16, 2009
A neat way to spice up your WordPress search page is to highlight search terms within your search results. I’ve seen some tutorials on the net on how to do this, but I haven’t found one that highlights both title and post content and is a drop-in modification for WordPress. Here is the complete tutorial for highlighting search terms on 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 …






