Home|About| Archives| Contact Us| Privacy Policy

WordPress Hacks 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 …

.htaccess, the file which control the Apache webserver, is very useful and allows you to do a lot of things. In this article, let’s see how .htaccess can help you with your WordPress blog, for both security,functionnality and usability.

When editing or modifying the .htaccess file of your WordPress blog, make sure to always have a backup that you can restore in case of something went wrong.

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 …

This tutorial will cover exporting your web host wordpress to a localhost host. Assume you are done with the web host WordPress development, it is time to learn how to export and import WordPress. Then you can keep the web host version for backup purpose and future development (ie. testing new themes, plugins, and upgrades).

Click here to read more …

Page 1 of 212