0
votes
2answers
162 views

problem using $var for shortcode attr value

I am trying to pass a variable value to a shortcode attribute. I can't get it to work. Is the following supposed to work, or must values be literal? $mycat = 'books'; $myshortcode = '[products ...