2,402 reputation
1734
bio website
location Dallas, TX
age 32
visits member for 3 years, 7 months
seen 2 hours ago

Whats there to know? A simple Geek who loves sci-fi and always up for a good challenge to solve. Hope to ask a lot of questions and hopefully get to answer some as well!


Oct
29
comment Which filter/action hook gets triggered after a query has been performed?
Thanks for the quick response.
Oct
14
comment $wpdb not being defined in function: Fatal error: Call to a member function query() on a non-object
Glad I was able to help
Oct
14
comment $wpdb not being defined in function: Fatal error: Call to a member function query() on a non-object
Check new solution, see if that works
Oct
14
comment $wpdb not being defined in function: Fatal error: Call to a member function query() on a non-object
I'm assuming that this is a custom plugin option page?
Oct
14
comment $wpdb not being defined in function: Fatal error: Call to a member function query() on a non-object
okay, give me a sec and let me see what I can find out. By the way, is this php file in a plugin or function file?
Oct
14
comment $wpdb not being defined in function: Fatal error: Call to a member function query() on a non-object
Okay, I see why. You are calling this php file without loading WordPress at all. That's why $wpdb and add_action are unavailable. I added an include to wp-load.php, which should sole the problem.
Oct
4
comment Where does the gallery shortcode gets its attachments from?
Oh, they are? Some more research to do. Thank you again, @kaiser
Oct
4
comment Where does the gallery shortcode gets its attachments from?
As I thought. Thanks for the clarification. So basically galleries are just images that are attached to a post; 1 gallery per post and since images are children to a post, you can only really attach the images to just one post at a time.
Oct
4
comment Where does the gallery shortcode gets its attachments from?
@kaiser good point. I'm working on a gallery/album plugin and I'm doing research on how WordPress currently handles them.
Sep
10
comment When should you use WP_Query vs query_posts() vs get_posts()?
so, if its so bad, why does query_posts exist?
Sep
5
comment custom field to always to .get_the_title()?
@amit which is why I did a check for that custom field he is using as the subtitle. If the post doesn't have it, the title isn't effected.
Sep
5
comment custom field to always to .get_the_title()?
Didn't realize it took arguments like that. Pretty sweet.
Aug
24
comment Custom Post Types: How-to get rid of editor (-meta box)
Glad that helped!
Aug
20
comment Need to add rewrite rule that adds in additional information about the post to url
How is state and suburb saved in the database: as metadata? taxonomy?
Aug
18
comment Best Collection of Code for your functions.php file
@kaiser documented here codex.wordpress.org/Plugin_API/Filter_Reference/…
Aug
18
comment add_rewrite_rule and pagination issue
is there a reason paged has an 's' on the end of it?
Aug
17
comment How to handle paging/pagination with a custom permalink?
I added the code I am using in the main question. Thank you for any suggestions you have.
Aug
17
comment How to handle paging/pagination with a custom permalink?
The page rewrite is built into WordPress, though. How would I make it work in that case?
Jul
24
comment Amazon.com intergration with WordPress?
According to the TOC, you can cache info for up to 24 hours, such as product links, image links, prices, etc after which the info can be updated, just as long as you spread the updates enough where you don't make more than 86400 calls a day = no more than a call a second.
Mar
5
comment Wordpress: Notice:Object of class WP_Query could not be converted to int in on line
Why do you have both a for loop and a while loop? You should need only the while loop. You can't iterate through a WP_Query object like that in a for loop.