35,381 reputation
21530
bio website metaflora.net
location San Francisco
age
visits member for 3 years, 3 months
seen 11 mins ago

I like bicycles and cats.

http://metaflora.net/


Jul
2
comment How to get the $atts of a shortcode
Have you read the attributes section of the Shortcode API?
Jul
2
comment pageYOffset problems in WordPress? Works on code playground, not on dev site
I don't see anything immediately wrong. It seems it's specific to your markup and/or some other script on the page, and not specifically a WordPress problem. also note, the noconflict wrapper can replace the $(function(){}); wrapper, as it's essentially serving the same purpose.
Jul
2
answered pre_get_posts causes Custom Posts appear under 'Pages' menu
Jul
2
comment pageYOffset problems in WordPress? Works on code playground, not on dev site
your code works for me when modified with a noConflict wrapper, so I presume you have some sort of syntax error somewhere. you're not going to get more than guesses unless you provide a link to the actual site, or provide the actual code you tried in context.
Jul
1
awarded  Announcer
Jul
1
comment $GLOBALS['hook_suffix'] variable empty
without seeing your code in context it's hard to say where you've gone wrong. if you look in wp-admin/admin.php, you can see where $hook_suffix is set in the admin bootstrap process.
Jul
1
comment “pagination” (but not really) and queries using custom posts types
Unfortunately not possible with api functions. Another option would be to hook into post save / update / delete and maintain an array of unique years saved in an option.
Jul
1
comment Post and featured image have the same name, why is the attachment (image) is showing and not the post?
this is a known issue and a result of having permalinks set to /%postname%/, see this trac ticket.
Jul
1
comment Rewrite Endpoints and CPTs - How to use in a plugin
if it's within a function you need to globalize $wp_query before you can access it: global $wp_query;
Jul
1
comment Rewrite Endpoints and CPTs - How to use in a plugin
see this answer for another way of detecting the presence of an endpoint in a request.
Jun
30
comment “pagination” (but not really) and queries using custom posts types
for that I'd probably do a raw sql query and select distinct year on the meta key directly from the meta table.
Jun
30
revised “pagination” (but not really) and queries using custom posts types
edited body
Jun
30
answered “pagination” (but not really) and queries using custom posts types
Jun
30
answered Wordpress is trimming leading 0s
Jun
28
comment Adapting CSS Star Rater for Wordpress post voting
if you're using the built in WordPress version of jQuery, it is in noConflict mode.
Jun
28
comment Getting Term_id - Taxonomy Metadata plugin
get_term_by isn't finding the term, either the name or the taxonomy you are passing is incorrect.
Jun
28
answered Is there a way to order posts and custom post types as one group?
Jun
28
comment 404 Page Not Found for Only One Post
There is one thing to look out for with slugs though - if you create one that's just a 4 digit number, it'll get picked up by the year rewrite rule and WordPress will try to load a year post archive.
Jun
28
comment 404 Page Not Found for Only One Post
That's just for get or post var names, there are no reserved words in slugs.
Jun
28
answered wordpress query from multiple post id