167 reputation
213
bio website joao.pt
location Berlin, Germany
age 27
visits member for 3 years, 10 months
seen Jan 22 at 21:19

I am a front-end developer & responsive web designer, passioned about belgian beer, libertine literature and the scandinavian culture.


Sep
18
comment How to debug a blank page?
I'm not using $wpdb->escape nor esc_sql in my code. I'm pretty sure this is a WordPress core warning or something like that.
Sep
18
comment How to debug a blank page?
Thanks, @kaiser. I added error_reporting( -1 ); to my wp-config.php but still have the same error as quoted above. I'm assuming it has nothing to do with plugins, since I have very few plugins installed and since the same template is being properly displayed across all other posts. Any more suggestions?
Sep
18
comment How to debug a blank page?
I did. I printed pretty much every little variable I'm using to ensure they do exist. They do. Everything is working with all other posts loading the same template—that's why I'm so confused about this.
Nov
7
comment Adding an Arbitrary Link to the Admin Menu?
Works like a charm, plus bonus point for using such a small snippet.
Apr
6
comment How to insert pictures without hard coded dimensions?
Thanks! In the meantime I've used wp_get_attachment_image_src() to get the src for the images. I think it ends up by being the most easy solution and it requires no filters.
Apr
5
comment How to create a simple slideshow out of a post image gallery?
Thanks! Worked like a charm!
Apr
5
comment How to insert pictures without hard coded dimensions?
Any more ideas on how to solve this?
Apr
5
comment How to get post category title within the loop?
Oh, god. It returned an array.. of course! And I completely forgot to sprint_f it, to make things worse. I'm such a bad programmer sometimes.. thanks for the help!
Apr
5
comment How to create a simple slideshow out of a post image gallery?
Thanks! Seems to be a good solution. Do you know how to remove the featured image from those attachments? Is it possible to do so?
Apr
4
comment How to insert pictures without hard coded dimensions?
It doesn't seem to work when pulling the images from the post gallery, using wp_get_attachment_image. Any suggestions?
Jun
8
comment Why is WordPress redirecting users to random posts after commenting?
Why wp_reset_postdata(); instead of wp_reset_query();?
Jun
8
comment Why is WordPress redirecting users to random posts after commenting?
Just solved my problem, using wp_reset_query(); :)
Jun
8
comment Why is WordPress redirecting users to random posts after commenting?
That's it, Otto. Thank you so much! In fact, it worked fine after commenting the sidebar include. And, actually, I'm using two different WP_Query objects on my sidebar. Do you know how to stop them for messing the main loop? Here's my sidebar file, just in case.
Apr
27
comment How to enable %postname% permalinks on Mac?
Perfect, that's what was missing. Thanks, Milo! :)
Apr
26
comment How to enable %postname% permalinks on Mac?
Thanks, Chris! One question, though: where should I add that second <IfModule> code? Right after the first one, inside my .conf user file?
Apr
26
comment How to enable %postname% permalinks on Mac?
Nope, it didn't work. Any more suggestions?
Apr
26
comment How to enable %postname% permalinks on Mac?
Thanks, Milo. I just got to /etc/users/[username].conf and set AllowOverride to "All" as well. Let me reboot and see if it works already.