1,281 reputation
519
bio website moraleida.me
location Rio de Janeiro, Brazil
age 30
visits member for 3 years
seen 2 days ago
/**
* Handyman Developer - WordPress Enthusiast
* Website: http://moraleida.me
* Email: ricardo [ at ] moraleida.me
* Tweet me @moraleida
*
* 
*/

Apr
9
answered get term archive url / link
Apr
9
answered What questions do you ask when asked to give an estimate on theme development?
Apr
9
comment add_meta_box: Datepicker like the one for postdate?
I would store it as you'd normally store a custom-value, using update_post_meta so you'd probably split that touch_time() function in two, using one of them to build the form as your callback in add_meta_box and the other one fetching values from $_POST[] abd saving, hooked to the save_post action.
Apr
9
answered add_meta_box: Datepicker like the one for postdate?
Mar
30
accepted Append a value to a certain page's URL before page load
Mar
30
comment Append a value to a certain page's URL before page load
$_GET["tubepress_video"] = get_option('featured_video_id'); worked perfectly. Sometimes i just hate the fact that i know more about wordpress than about PHP itself. Thanks!
Mar
30
awarded  Commentator
Mar
30
comment Append a value to a certain page's URL before page load
The video page is a wp page, up and running. And i got $link back and now i get the correct query. But i guess this hook isn't what i thought, then. I wanted a hook that would redirect any links to mysite.com/videos/ to mysite.com/videos/?tubepress_video=somevideoid, so appending values before page load...
Mar
30
comment Append a value to a certain page's URL before page load
Not really. The last parameter is optional and defaults to $_SERVER[];
Mar
30
asked Append a value to a certain page's URL before page load
Mar
20
accepted How to fetch only media that was already attached to a post/page?
Mar
20
comment How to fetch only media that was already attached to a post/page?
Awesome, just throwed in a limitation to get the last 100 posts and it worked perfectly. Thanks!
Mar
20
comment How to fetch only media that was already attached to a post/page?
Neverming the last comment. I was working with a corrupt db that i thought was a true copy of the real one. post_parents are there. :)
Mar
20
comment How to fetch only media that was already attached to a post/page?
Hum... somehow my query is getting every media result because most of the attached images have post_parent=0 on wp_posts even though they're effectively attached to posts. Maybe the parent/child relationship for attachments is somewhere on wp_postmeta?
Mar
20
comment How to fetch only media that was already attached to a post/page?
I like the second approach, although i fear it will become heavier and heavier with time (i already have more than 2k attachments). On the other hand, since i'm fetching only the last 15 images, maybe querying only the last 50 posts will do... Will try! :)
Mar
20
asked How to fetch only media that was already attached to a post/page?
Mar
16
answered How can I display custom post types under multiple views?
Mar
12
accepted thickbox never gets called (weird behavior)
Mar
10
answered thickbox never gets called (weird behavior)
Mar
9
comment thickbox never gets called (weird behavior)
+1 for saying: check your details! It wasn't any of these, but it helped. :)