228 reputation
515
bio website
location Northeastern USA
age
visits member for 3 years, 4 months
seen Jan 20 at 20:42

I'm a Web Developer, and IT & AV Professional


Sep
18
asked Custom post type - order field
Sep
13
accepted Remove link on full-size images
Sep
9
comment Remove link on full-size images
To not have the image linked by default
Sep
9
comment Remove link on full-size images
Is there a way to do this without requiring an extra step for users using the editor?
Sep
9
comment Remove link on full-size images
@Otto No code as of yet. There didn't appear to be a simple and obvious built-in approach, so that's why I'm asking. Any image you insert in a post/page using the editor exhibits this behavior. The theme doesn't matter for this question.
Sep
7
asked Remove link on full-size images
Sep
6
accepted altering search terms
Sep
6
comment altering search terms
As a workaround, I put a if(!empty($wp_query->query_var['s'])){} before have_posts() in the search.php template.
Sep
6
comment altering search terms
It works, but if the new query var ends up being an empty string, all posts and pages are returned. How can I prevent that?
Sep
5
comment using new WP_Query in save_post function alters $post
@StephenHarris how would I retrieve the post ID withing the have_posts() while loop without touching $post?
Sep
5
asked altering search terms
Sep
5
awarded  Editor
Sep
5
revised using new WP_Query in save_post function alters $post
added 44 characters in body
Sep
4
awarded  Teacher
Sep
4
accepted using new WP_Query in save_post function alters $post
Sep
4
answered using new WP_Query in save_post function alters $post
Sep
4
awarded  Commentator
Sep
4
accepted How to validate custom fields in custom post type?
Sep
4
comment How to validate custom fields in custom post type?
ok, I think I got it. The magic is with the add_option and get_option wordpress functions to store and retrieve the variable, and the shutdown hook is useful to call the add_option function only once per session after everything is done.
Sep
4
comment How to validate custom fields in custom post type?
I'm not quite clear on what are you using to allow variables to persist across requests. Is it the inclusion of the $instance variable? Or is it one of the add_action statements? Or both? Something else?