213 reputation
312
bio website
location Northeastern USA
age
visits member for 2 years, 8 months
seen Jan 20 at 20:42

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


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?
Aug
30
comment How to validate custom fields in custom post type?
Example code: pastebin.com/vTxv9cw1
Aug
30
asked using new WP_Query in save_post function alters $post
Aug
30
comment How to validate custom fields in custom post type?
This only appears to work when the page is loaded for the first time. If the "Update/Publish" button is clicked, no notices are displayed.
Aug
29
comment Shortcode attribute “title” doesn't appear in $atts array
That was my question. I tried [bhours shortcode="test" compress="true" title="my title"], but the title attribute still didn't appear.
Aug
29
comment How to validate custom fields in custom post type?
I'm not quite clear on this...does your example code require 3rd-party code, or will it work in wordpress as-is?