| bio | website | |
|---|---|---|
| location | United States | |
| age | ||
| visits | member for | 1 year, 5 months |
| seen | Feb 12 at 19:13 | |
| stats | profile views | 6 |
|
Jan 30 |
comment |
How to enqueue script based on post category? Hmm, I'm doing this in a theme I'm currently developing and it worked for me. Seems obvious, but are you sure you have posts in the 'mouse' category? Are you sure the slug of that category is exactly mouse? Are you browsing to a single post (or page)? |
|
Jan 30 |
answered | How to enqueue script based on post category? |
|
Jan 30 |
awarded | Scholar |
|
Jan 30 |
accepted | Saving custom metabox data with a twist |
|
Jan 30 |
comment |
Saving custom metabox data with a twist So unsetting $_POST['product']['homefeature'] fixed it! I'm still confused at why this would happen, because even if save_post is called twice it should work. |
|
Jan 30 |
comment |
Saving custom metabox data with a twist I am handling the autosave, but if its called twice then maybe I can solve my problem by unsetting some POST variables. I'll give it a try. |
|
Jan 30 |
comment |
Saving custom metabox data with a twist Well, I'm toggling from on to off (not the other way around) but yes, that's what I'm trying to do. There can be only one featured product, so I have to go and flag the current one as off. |
|
Jan 30 |
asked | Saving custom metabox data with a twist |
|
Jan 25 |
awarded | Supporter |
|
Dec 7 |
answered | Wordpress: embedding last posted video |