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


Aug
28
awarded  Student
Aug
28
asked How to validate custom fields in custom post type?
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.
Aug
28
asked Shortcode attribute “title” doesn't appear in $atts array
Aug
28
accepted add_shortcode() not working inside of function
Aug
27
asked add_shortcode() not working inside of function
May
31
awarded  Scholar
May
31
accepted How to detect /category and /tag base pages?
May
29
awarded  Supporter
May
29
answered How to detect /category and /tag base pages?
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?
May
28
asked How to detect /category and /tag base pages?