Cleverness – WordPress Resources

Articles

Limit Number of Posts Per User in WordPress

This code will limit the number of posts a user can make.

At first, I was trying to limit each user to one post and I had that working. Then I realized that I needed to have different numbers of posts for different users, so I created an option in a user’s profile that only people with the right capability (manage_options) can edit. I’ll be changing this in the future for that number to be automatically changed depending on a user’s subscription type, but I needed this for testing purposes.

The option in the profile shows up under the contact … continue reading

Add User Types to WordPress and BuddyPress

One thing I needed to do was allow people to choose a user type at registration. I also needed the user to be assigned a custom Role based on their user type.

Smashing WordPress Review

Smashing WordPress Review

Smashing WordPress: Beyond the Blog (Smashing Magazine Book Series) by Thord Daniel Hedengren

This is not a book for beginners. You should know HTML and CSS (and some basic PHP) and be comfortable with editing files.

I’ve used the loop before for custom queries, but I found the way he explained it easier to comprehend than other explanations I’ve read.

I felt like some of the code displayed in the book was unnecessary, especially most of the CSS. There were a few things I would have liked to see the code for that weren’t shown, mainly in the second half … continue reading

WebCEO on Sale Now!

The SEO software, Web CEO that I posted a review of recently is now on sale.

This sale only lasts till June 12th and is a huge discount if you’ve been thinking of buying this software.

SmallBiz Unleased is 62% off and Professional Unleased is 52% off.

You get the software plus training and certification.


SEO software by Web CEO
continue reading

Web CEO – SEO Software Review

Do you need software for search engine optimization? Not really.

But is is easier and more convenient with it? Yes.

It’s like using Notepad to code versus using an editor with features like code folding and syntax highlighting.

I tried out several different free editions of SEO software, but the only one I liked was Web CEO.

It comes in several editions, including one free and two paid options. Even the free one comes with a basic SEO training course that ends in a certification. I took the free certification course myself and ended up learning some things I … continue reading

Show number of posts in a category

Tonight I needed to figure out how to display the number of posts that were in a specific category.

This post on Getting the number of posts per category showed me how to do that.

This goes into your template where you want the number to appear:

Replace category-slug with the slug of your category.… continue reading

Favorite Firefox Addons

There are a lot of great Firefox Addons available. Some can help you in developing your WordPress site and some just make your browsing experience better.

continue reading

Addon Name URL Description
Adblock Plus Website Ads were yesterday!
Backgroundimage Saver Website Save or View Backgroundimages (even if they are protected by hiding behind transparent Gifs).
CodeBurner for Firebug Website Extends Firebug with reference material for HTML and CSS
ColorZilla Website Advanced Eyedropper, ColorPicker, Page Zoomer and other colorful goodies
Delicious Bookmarks Website Access your bookmarks wherever you go and keep them organized no matter how many you have.
Download Statusbar Website View

Replacing Core Functions

Replacing template core functions is easy and doesn’t require editing core files.

Copy the code for that function to functions.php in your theme, change the function name, and call it in your template using it’s new name.… continue reading

Yearly Archives

Place the following in functions.php to list the archives for a specific month and year:

This is what you will add to your template file:


If you’ve been blogging for a number of years, it can sometimes be helpful to list your archives by years, then by months, then by days.

If you use this method, your archive page will list every year you have a post in. Then when you click on a year, it will take you to a list of the months you posted in that year. Then when clicking on a month, you go to a … continue reading