2,322 reputation
1630
bio website
location Dallas, TX
age 31
visits member for 3 years, 3 months
seen 16 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
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.
Feb
15
comment What is considered a default query for the request filter?
Just needed some clarification. Thanks for the answer, Otto man.
Feb
12
comment Most efficient way to search for values from CPT in Post content
Doesn't WP already cache posts when you call them once?
Jan
24
comment List all posts in Custom Post Type but group dynamically by Custom Taxonomies
Does anyone know how efficient this is performance wise?
Jan
16
comment Using global $post; with custom post types
Any reason the third and fourth lines are there? They don't seem to do anything.