Popular Posts
All posts ordered by popularity
WordPress: Customize Read More Links and Text
Here are two code snippets that are useful for customizing the “read more” link. The read more link is displayed on archive views like category archives, author archives, posts archives, search results, and so forth. You also will find the read more link displayed on the site’s homepage and on any page where posts excerpts […]
WordPress s2member PayPal Fix
For those using s2Member and getting no response after clicking the “Continue” button on the PayPal.com site, here is a quick possible solution.
Reset password via SQL
Quick tip o the day! Here’s how to reset your password using a simple SQL query.
Notes on @media queries
Just a couple of notes for working with CSS @media queries: two ways to write media queries and how to query portrait vs. landscape orientation.
How to change your theme’s appearance
If you want to change certain aspects of your theme, you should get familar with its different files.
jQuery Add Another Image Link
This code snippet is taken from my plugin, User Submitted Posts. It displays a link that users may click to add another file-upload input field.
Two interesting WordPress infographics
Here are a couple of interesting infographics for WordPress. Interesting to get a larger view of the WP universe :)
JavaScript & jQuery: Add Style to Fragment Identifier
It’s easy to style a <div></div> by targeting its ID. But what if you only want to add style when a specific fragment identifier is targeted via the URL? So for example, your page at /about/ has a table with all the data. When visitors arrive directly at /about/, no extra styles are added. But […]
CSS Selectors and Default Styles for the WordPress Admin Area
Here are the CSS selectors used by WordPress in the Admin Area. Note that things are changing relatively quickly in the WP Admin Area, so chances are there are additional selectors and styles that have been added, and likely some changes made to the current list. So this collection of default CSS selectors and styles […]
Auto-Height for Ajax-Loaded Content
Here is a jQuery function for automatically setting the height of Ajax-loaded content.
WordPress Change Default Number of Displayed Posts
By default, WordPress displays the same number of posts for the home page (when it is set to display posts) and all types of archive views. To change the default number of posts displayed for any specific view, you can add this simple function to your theme’s functions.php file.
PHP Stringify Formatted Text
This code snippet takes a string of text and removes all carriage returns, new lines, and tabs, replacing any matches with a simple blank space. An ideal way to “stringify” a potentially formatted lump of alphanumeric text.