363 reputation
bio website kevinleary.net
location Boston, MA
age 28
visits member for 4 years, 2 months
seen Jan 19 at 17:15

Boston based user interface designer & developer specializing in CSS, XHTML, jQuery, JavaScript, LAMP and WordPress.

comment If i have custom post type with 5 custom fields do i have to create a new loop to reference each one?
Assuming your post type is neighborhood, your theme's single-neighborhood.php file will load whenever a neighborhood entry is viewed. For example, assuming your post type rewrite is neighborhoods, if you create a new neighborhood entry called "Sanborn", with a URL of www.yourdomain.com/neighborhoods/sanborn/ then single-neighborhood.php is loaded from your theme to determine what that page looks like. Each page has a unique ID, and the_post() loads in the data for the the ID of the current post/page/post type.
comment WP_Query Performance Issues with meta_query
Thanks Anu, I've found that the OR relation operator was the culprit. The query went from 35.76 seconds to 2.18 just by switching that to AND.
comment Setting posts per page in query_posts
By adding onto the existing query vars we aren't rewriting anything. This is like saying: "Give me your settings, I'm going to change one value, then reset them." before running the query.
comment How to know what functions are hooked to an action/filter?
Great little function toscho, thanks for sharing this. I'm using it to evaluate all of the action hooks loaded for a theme at the shutdown action.
comment Why is WordPress WYSIWYMG and how do I make it WYSIWYG?
Also, be cautious when removing these filters. They can cause some issues with output but also do wonders for formatting content. For more info refer to this article in the codex: codex.wordpress.org/How_WordPress_Processes_Post_Content
comment Why is WordPress WYSIWYMG and how do I make it WYSIWYG?
If you mean the functions.php file you can do it 2 ways: FTP into your WordPress site and browse to "wp-content/themes/{theme-name}/functions.php". Open and edit that file. Another way is using the Theme editor in WordPress, which is at my.wordpresssite.com/wp-admin/theme-editor.php. From there opne the "Theme Functions" file and add the code there.