12,511 reputation
1853
bio website christopherdavis.me
location Lexington, KY
age 28
visits member for 3 years, 7 months
seen 6 hours ago

I work as a web developer for Enterprise clients and build web applications with PHP.

Connect


Dec
8
comment is this code properly secured
Where does $address_table come from?
Dec
4
awarded  Notable Question
Oct
28
answered Declare plugin dependency
Oct
28
revised Are all options loaded to memory on each request?
edited body
Oct
23
awarded  Nice Answer
Oct
1
reviewed Approve Delete/replace img tags in post content for auto published posts
Sep
25
comment Custom post type archive - error in nav-menu-template.php
Gave you a possible solution in an edit just now. I would try to avoid editing the plugin itself.
Sep
25
revised Custom post type archive - error in nav-menu-template.php
added 704 characters in body
Sep
25
answered Custom post type archive - error in nav-menu-template.php
Sep
25
comment Custom post type archive - error in nav-menu-template.php
Post of the contents of your archive-vehicle.php. Specifically any parts what call wp_nav_menu or related functions.
Sep
25
revised meta_query with array as value with multiple arrays
added 102 characters in body
Sep
25
comment get_the_post_thumbnail() returning empty string on custom post type
You'll need to post more context. Saying a function doesn't work without any context of how it's used doesn't give us much to go on. Most WordPress functions are not deterministic: calling the_post_thumbnail in different places on the page with the same inputs may yield different results, for instance. Depends on global state, etc.
Sep
23
revised Using preg_replace to filter custom textarea
Pass $post into the function rather than using a global.
Sep
23
comment Using preg_replace to filter custom textarea
Also, you don't need a global. Tell add_action to pass two arguments and the second will be the $post object.
Sep
23
comment Using preg_replace to filter custom textarea
Add an explanation about what was wrong to this answer, and how you fixed it. Then accept it. Helps the next person who comes along.
Sep
23
revised Using preg_replace to filter custom textarea
added 318 characters in body
Sep
23
comment Using preg_replace to filter custom textarea
oooo, good catch. I don't think there is one.
Sep
23
comment Using preg_replace to filter custom textarea
This has nothing to do with un-escaped regex. The % is not a meta character. preg_quote('%%PROPOSAL_LINK%%') === '%%PROPOSAL_LINK%%'; in other words.
Sep
23
answered Using preg_replace to filter custom textarea
Sep
16
awarded  Revival