WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can I pass attributes from a shortcode to a nested one.


[row $number_of_cols=4]
share|improve this question
Please explain the example and add the relevant PHP code. Did you research this topic or search this site? – birgire Jan 20 '14 at 16:04
yes i searched but found nothing...I want to type the param in the shortcode and use it in a nested shortcode like write the number of columns to be used and divide the total width on that number to get the width of each column...NB: columns have also their own param – ws-templates Jan 20 '14 at 16:08
I see many similar questions in the "Related" list on the right sidebar, give some of them a try and report back if you get stuck. – birgire Jan 20 '14 at 16:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.