Back to Top

WordPress Tips

WordPress Tips

URL to Post ID for Custom Post Types

21 OPINIONS!

In WordPress, url_to_postid is a magic function that helps you convert certain URLs to IDs. However, it is limited to built-in post types. This tip will show you how to quickly make url_to_postid work with WordPress custom post types.... more

Remove Trailing Slash for Permalinks with Extensions

3 OPINIONS!

If you are using a permalink structure that has a trailing slash at the end, read this tip to know how to remove such slash for virtual pages, whose URLs end in their extensions!... more

No Smilies Conversion in Code Tags

Awaiting Opinion...

Smilies are used everywhere: in posts, comments, or even handwritten notes, and WordPress automatically converts a text smiley to a nice icon for you. But inside code tags, such conversion serves no purpose. It is therefore recommended that you disable it.... more

Automatically Make Links Clickable

15 OPINIONS!

Use the magic function make_clickable() to make links in your post clickable, just like in comment text.... more

Ready Your Images for JS Media Viewers

Awaiting Opinion...

Who doesn't want a fancy popup effect for images? Make your images ready for ColorBox, Shadowbox, Fancybox, or any other Javascript Media Viewers, now!... more

Get incoming Search Keywords to your Website/Blog

21 OPINIONS!

A simple way to get what search terms people are using to arrive at your website/blog, with support for Google, Yahoo, Bing and other major Search Engines.... more

Remove pingbacks/trackbacks from Comments Feed

2 OPINIONS!

Your comments feed might be flooded with unimportant or even unrelated pingbacks/trackbacks. It's time to remove them entirely!... more

Protecting the WordPress wp-admin Folder

10 OPINIONS!

Do not let curious people request your wp-admin at all, block them based on their IP addresses or by using an additional pair of username and password.... more

Properly Format your Filesize in WordPress

Awaiting Opinion...

Format the sizes of your attachments (or any other files) nicely using size_format().... more

Append a Trailing Slash to Paths and URLs

1 Opinion so far!

This useful function will help you easily and properly work with paths and URLs.... more

Global Options in a Multi-site WordPress

16 OPINIONS!

Make use of get_site_option() and update_site_option() in a Multi-site environment.... more

Enqueue Style Sheets with Conditional Statements

Awaiting Opinion...

Using a built-in but hidden feature of WordPress to enqueue your IE-specific style sheets.... more

Script Localization for WordPress

1 Opinion so far!

Ever wonder how to localize your Javascript within a plugin? This tip will show you how!... more

Remove WordPress’s Version Number

2 OPINIONS!

Remove WordPress's version number in header, feeds, and media links without using any plugin!... more

Page 1 of 3 1 2 3