You’re on a website, you notice that results seem to be different when you query the database depending on if you are on Page A, vs Page B — or if you are logged in vs logged out.
You start asking questions like “is my plugin broken?” and “did I introduce a bug or something”?
Answer is probably “no”.
Many things depend on WP_Query within WordPress. It has some out of the box functionality that you may not know about.
A question appeared on the “Advanced WordPress” Group on Facebook
What are some of the most common mistakes made by WordPress developer newbies?
I decided to quickly punch out a few things I’ve encountered in my years of WordPress development. Figured that it would be a shame that the list that got so much praise would end up getting buried on Facebook to never be seen again. If you’re a noob I hope this helps!
What I’m about to cover is centered around taking a clean, working WordPress installation and moving it. That could be to another server, another domain, or bringing it down to setup a local development environment.
I was on the struggle bus and noticed that E_STRICT errors were plaguing my WordPress install. Regardless of all the usual php.ini configuration stuff, virtualhost configuration stuff and .htaccess hacks — this was becoming a real headache.
Huge props to Chris McCoy A.K.A “fris” (GitHub / Twitter) for schooling me in using add_filter for this.
I needed to add custom fields to the post type: Post within WordPress. That’s not problematic, in fact it’s rather quite easy. But, ordering Posts based on the assigned value of my custom field… that isn’t super straight forward.
You should avoid keeping your WordPress install at the default UTC timezone it’s set to when you first install it. Also avoid doing what I commonly see in many WordPress installs, which is using UTC values.
At Noble Studios, we support many platforms and technologies. One of our favorite “go to” content management system (CMS) platforms is WordPress. When it comes to market share for CMS, there is some dispute over the popularity of WordPress. Some say it’s 90% of the CMS market, others say it is 50-60%. Regardless, it’s currently the most popular CMS platform with some 60,000,000 WordPress websites worldwide.