This example is for an employee directory. We created a custom post type called “employee”. For that custom post type we created two custom taxonomies – “type” and “department”. Lets say we want to find employees in the technology department that are programmers.
$args=array( 'post_type' => 'employee', 'post_status' => 'publish', 'posts_per_page' => -1, 'caller_get_posts' => 1, 'order' => 'ASC', 'orderby' => 'title', 'type' => 'programmer', 'department' => 'technology' ); query_posts( $args ); // loop it
Hopefully this helps if you are looking to query multiple custom taxonomies from custom post types in WordPress. Have questions? Let us know in the comments!
This is for those of you hunting for the Cheatin’ uh? WordPress error when developing custom post types.
It’s most likely an issue with what you named a custom taxonomy that you intend to attach to a custom post type.
In our case we had…
register_taxonomy("Types", array("portfolio"), array("hierarchical" => true, "label" =>; "Types", "singular_label" => "Type", "rewrite" =&> true));
This is a frustrating error because you simply get the “Cheatin uh?” message.
Here’s the fix
register_taxonomy("types", array("portfolio"), array("hierarchical" => true, "label" => "Types", "singular_label" => "Type", "rewrite" => true));
Notice the difference? The fix is your custom taxonomy’s name has to be lower case. That should save you a couple hour hunt down a rabbit hole.
Category : Blog &wordpress &wordpress development
Our latest project was a WordPress E-commerce store selling printable baby shower games.
Screenshots
What We Did
- WordPress Hosting
- SEO and Site Optimization
- Landing Page Design (see free baby shower games)
- Site Configuration / Optimization
- WordPress Theme Design and Updates
- E-Commerce Integration
Questions? Comments? Let us know below!
Andy’s answer on Quora to What’s the best forum plugin for WordPress?
WordPress 3.0.5 was released today…
This security release is required if you have any untrusted user accounts, but it also comes with important security enhancements and hardening. All WordPress users are strongly encouraged to update.
Release details can be found here.
A recent Quora question I answered… “How can I add social sharing buttons to my WordPress blog?“
We’ve talked WordPress sharing plugins before…
But if you want multiple sharing options (LinkedIn, Twitter, Facebook, etc) then install the Sexy Bookmarks plugin and configure it to use whichever networks you want to have your content shared on.
If you want just Twitter and Facebook you can install just the Facebook Like Button and Twitter Tweet Button.
WordPress Social Sharing Buttons
On most of our WordPress sites we use the Facebook Like button along with the Twitter Tweet button plugins and place theme into the theme with shortcodes. This way we have more control over where they show up and how they look in our WordPress themes.
Got questions? Comments? Suggestions? Let us know in the comments!
I regularly post answers on Quora to WordPress questions and will be cross posting some of my more popular answers here…
This question was how to SEO a WordPress blog. I always start with these simple steps….
- Set up permalinks properly (I use %category%/%postname%)
- Install All-In-One SEO plugin
- Put keyword in Title
- Put keyword-rich description for Meta description
- Optimize On Page elements
- Post/Page titles should be H1/H2
- Link to internal pages with keywords
- Use alt/title elements with keywords in them
- Write good keyword-rich content
- First step is to know what keywords to target
- Second step is to write well using those keywords
Those are the basics and should get you started with a highly optimized WordPress site. Once you get this far you can begin to take it to the next level…
How do I SEO my WordPress hosted blog?
Questions? Comments? Let us know below!
A couple nights ago we launched one of our fun side projects we dubbed hashDSM (or #dsm).
Naturally, we built the site on WordPress but the concept is to monitor commonly used Twitter hashtags in Des Moines, Iowa and aggregate them into a real-time stream organized by topics. We crowd sourced the common hashtags from a question on Quora.
There are a few issues left we hope to iron out (like caching for when the Twitter API doesn’t respond) but thought we’d get it out there anyway.
Questions? Comments? Feedback? Please let us know in the comments or on Twitter.
WordPress comes under attack a lot because it’s such a popular platform. We’ve talked about basic WordPress security tips but what do you do when you suspect your WordPress site has been hacked?
Here are some tools to help you keep your WordPress site safe or cleanup after you have been hacked..
WordPress Exploit Scanner [link]
Search the files and database of your WordPress install for signs that may indicate that it has fallen victim to malicious hackers.
WordPress TAC [link]
WordPress Theme Authenticity Checker… Scans theme code for potentially malicious code.
WordPress Security Scan [link]
Scans your WordPress installation for security vulnerabilities.
Questions? Comments? Suggestions? Let us know in the comments!
Worrying about security sucks. And since WordPress has become one of the most popular publishing platform in the world it has also become a target for hackers.
We’ve had a few questions about keeping WordPress secure so here’s a few good tips and links to get you started.
WordPress Security Tips
WordPress.org offers a few simple tips we use on every site that definitely helps with basic WordPress lockdown.
- Don’t name your Administrator user “admin”. This is an option on install and can be changed if y ou are already up and running
- Change your database table prefix. Again – this is an option upon install and can also be changed if you are already up and running. We recommend using a random prefix, like “wpX38f4_”
- Proper File Permissions are VERY important – set them and forget them. You can do this from your FTP program
- Install WP-Security-Scan – it scans your site for vulnerabilities
- Protect your wp-config.php file
- Make sure your WordPress hosting provider takes security seriously
WordPress Lockdown Video
This is a great video from Brad Williams on locking down WordPress from WordCamp Boston. [








