218 reputation
414
bio website
location Northeastern USA
age
visits member for 3 years
seen Jan 20 at 20:42

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


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?
Aug
28
comment Shortcode attribute “title” doesn't appear in $atts array
If I use the code as you suggest, the value of the title attribute does not get passed to the $title variable. However, the $shortcode variable works fine. Again, this brings us back to the original question--why does "title" not appear in the $atts array? After all, you still need it to appear in the array in order to access it with the extract function.
Aug
28
comment Shortcode attribute “title” doesn't appear in $atts array
The problem is that I want to be able to tell the difference between [bhours title=""], [bhours title="my title"], and [bhours], so I don't necessarily want to set a default value.
Aug
28
comment Shortcode attribute “title” doesn't appear in $atts array
Of course. There was no mention of this issue.
May
29
comment How to detect /category and /tag base pages?
When the example code I posted is used, there is no actual 404 error generated. Would it be better to redirect those pages to the home page instead, and how would that be done?