Archive

Posts Tagged ‘wp hack’

Automatically Get Images on Post Content

November 4th, 2009

The problem. Using custom fields to display images associated with your post is definitely a great idea, but many WordPress users would like a solution for retrieving images embedded in the post’s content itself.
The solution. As far as we know, there’s no plug-in to do that. Happily, the following loop will do the job: it [...]

Read More >>



Use The Loop To Create An Archive Page Template : Wordpress Hack

November 2nd, 2009

The problem.
As noted in the previous hack, a common problem on blogs is that it is hard for readers to find content published a while ago.
To help my readers finding what they’re looking for, I created a WordPress page template that displays a list of all posts ever published on my blog. You can see [...]

Read More >>



Get Posts Published Between Two Dates : Wordpress Hack

November 2nd, 2009

The problem.
The loop and the query_posts() WordPress function allow you to easily retrieve a list of posts published in a specific week or month. Unfortunately, getting posts published between, for example, March 17 and May 3 isn’t that easy. Let’s solve this problem.

Read More >>



How to Separate Comments and Trackbacks : Wordpress Tips

October 18th, 2009

Most wordpress themes out there (by default) combine both comments and trackbacks / pingbacks together and display under the same list. But why bother separating them? Simply to make things looks more organize so your blog commenters have a clearer picture what are the comments, what’s not. Doing it is not hard, but you need [...]

Read More >>



Wordpress Hack: Opening Links in New Windows

October 13th, 2009

I have just modified the hack a little so as to reduce the amount of code being used.
The hack:
1. Open quicktags.js in the wp-admin folder
2. Find:

Read More >>



Displaying WordPress Categories in a Horizontal Dropdown Menu

October 12th, 2009

Displaying WordPress Categories in a Horizontal Dropdown Menu
The first step is to get WordPress to display the menu as a hierarchical list without a title.

Read More >>



How To: Add Smilies To Your WordPress Blog with Smilies Themer

October 11th, 2009

Have you ever noticed those cute little smilies that some WordPress bloggers use to show emotions within their posts? Offering these has become quite the trend around the blogosphere.

Read More >>



Displaying Your Most Commented Posts in Wordpress

October 8th, 2009

Though this isn’t quite the same as displaying your most popular posts in your sidebar, here is some code you can use to display the posts that have received the most comments.  You’ll want to place it in your sidebar where you want the code to be displayed.
Most Commented Posts Code
Go into your theme files [...]

Read More >>



WordPress Tip: Customizing Your 404 Page

October 5th, 2009

Most themes typically come with a 404.php page that shows up by default whenever an invalid URL is visited on your blog. Depending on how often you change the URL of existing posts or delete old posts, it may or may not be a high traffic page for your blog.
Either way, when a typical web [...]

Read More >>



Adding Comment Numbers To Your WordPress Theme

October 3rd, 2009

Here are the steps you can take to easily add numbers to your WordPress theme’s comments section.

First thing you will want to do is create a backup your comments.php file.
Locate the comments.php file.
Locate the code that starts the comment loop. It will look something like this:

Read More >>