Cleverness – WordPress Resources

Archive for August, 2010

Get Categories Author has Posted in for Custom Post Types

I needed to list all the categories of a custom post type that an author had posted in.

I found code to do that with regular posts in the wordpress.org forums and I modified it to use with custom post types.

Be sure to replace customposttype with the name of your custom post type.

Place this into your theme file where you want the list to appear.… continue reading

New To-Do List Plugin Version

Updated the To-Do List Plugin with an updated German translation by Ascobol.… continue reading

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

To-Do List Plugin version 2.1.3

Version 2.1.3 of the To-Do List Plugin is out.

This is just a small bug fix that fixes the backslash appearing before apostrophes on some servers.… 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.