Reputation
2,337
Top tag
Next privilege 2,500 Rep.
Create tag synonyms
Badges
4 20 36
Impact
~365k people reached

Feb
1
comment How do I add CSS options to my plugin without using inline styles?
@chazza That's not the only reason. When a browser detects any styles after the body tag is written, it stops whatever else it is doing until that style is loaded and applied, which is bad for performance and leads to screen reflows and flashes of unstyled text. However, if it doesn't really matter, throw those css files in like you said. I do it all the time, and at the end of the day it's fine. Not optimal, but fine.
Nov
2
comment How do you build a database-centric site in WP?
I think you should clarify what you mean by "database intensive websites on WP". Do you want to keep your existing database tables and custom SQL queries and use them within a WordPress website? Or do you want to import your data into WordPress and use as much of the builtin database functionality as possible?
Oct
28
comment How to create a json API for my custom post type
@vol4ijman. I take it back then :)
Oct
28
comment How to create a json API for my custom post type
Op asked for no plugins.
Jan
1
comment Are Wordpress Plugins essential?
I'm not saying they're not professionally done, some are quite excellent. I'm saying that there's an arms race going on over there for the most "features" added, and I've purposely avoided buying a theme I wanted because it simply had too much conflicting functionality with the site I was running. I wish some of them simply had the base templates and stylesheets, without the extra stuff.
Jan
1
comment Exact image sizes
Unless WP has modified their thumbnail stuff, you'll definitely want to rebuild your thumbnails with the plugin mentioned. You will literally pull your hair out wondering what is wrong if you don't.
Jan
1
comment Are Wordpress Plugins essential?
bosco: Making me jealous of the images. I might go back and create an infographic myself :p
Jan
1
comment Are Wordpress Plugins essential?
This is a good question. In my experience, the first thing I do when taking over someone's site as webmaster is to audit their plugins and remove everything that isn't 100% essential. Nine times out of ten, no one notices a difference, except the site runs faster and there are less bugs.
Jan
1
comment Are Wordpress Plugins essential?
YouTube videos don't need a plugin. They're embeddable in the default WP install. Have been for a long time.
Dec
10
comment Adding jquery using php function
Just because it was obvious what was wrong with the code doesn't make it a good question, or useful to other people.
Dec
10
comment Adding jquery using php function
You're right. In either case, the problem isn't where he's enqueuing it.
Dec
10
comment Wordpress Queries Not Working?
Sorry, I didn't test any of that code. You'll need to update the if statement accordingly.
Dec
9
comment Make change in media library affect images in published articles
As far as I know, nope. If it puts it inline you basically have to manually edit it. Which is dumb.
Dec
9
comment Wordpress Queries Not Working?
For the sidebar, just use a wp-query block. See answer below
Dec
9
comment Adding jquery using php function
You're simply mixing javascript and PHP without escaping the javascript. Either use a PHP HEREDOC or escape all of your apostrophes/quotes
Dec
9
comment Adding jquery using php function
Can you post the exact error? Seems like you're running into the jQuery noConflict mode. Change $('.toggleDiv').slideUp(options.speed, options.easing); into jQuery('.toggleDiv').slideUp(options.speed, options.easing); and see if that makes any difference
Dec
9
comment Wordpress Queries Not Working?
Wow. Shouldn't you be using new WP-Queries for everything? It would be a trillion times easier.
Aug
23
comment How to use custom post type APIs, but use a different db table
That last part makes sense about making sure to clean up stuff, but that should be a standard operating procedure for all WP plugins. Thanks
Jul
3
comment Exclude categories from postquery
Wouldn't this function best be a pre_get_posts filter?
Jun
11
comment When should you use WP_Query vs query_posts() vs get_posts()?
The question was "When should you use... query_posts()" and according to the logic presented by that blog post and the comments above, the answer is likely never.