Home|About| Archives| Contact Us| Privacy Policy

WordPress How-To Tag's Archives

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.

Click here to read more …

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.

Click here to read more …

There are plenty of WordPress extensions that generate breadcrumb navigation. But you can actually create custom breadcrumb navigation with only a handful of lines of code in the template, opening up greater control and, potentially, less overhead. This approach to breadcrumbs builds on the get_post_ancestors function.

To start with, here is a basic implementation of breadcrumbs that only deals with pages and includes a breadcrumb for “home” (the front page of theblog) at the beginning of the list. Depending on the design of a particular template, some checks may need to placed around this code. In this example, it will be assumed that this code will be placed in the header.php template file, that the crumbs should appear only on pages, and that it should not show up on the front page. The current page and front page link will also be assigned special CSS classes for styling purposes.

Click here to read more …

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.

Click here to read more …

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 …

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;

  }

}

?>

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 …

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.

Click here to read more …

Page 1 of 212