Best Answer eric, 13 May 2015 - 10:23 PM
You can indeed use the theme option in a shortcode, with the following caveats:
- If you haven't already, I highly recommend first reviewing our new theme documentation for WordPress or standalone PHP users.
- You should supply as its value the title of a theme, as defined in its manifest file. So for instance if you have a theme with the title tubepress/foobar, you could use the following shortcode:
[tubepress theme="tubepress/foobar"]
If you're using legacy (anything before version 4.0.0) TubePress themes, your theme's title will be prefixed with unknown/legacy-. For instance if you are using a TubePress 3.x.x theme called mytheme, you could use the following:[tubepress theme="unknown/legacy-mytheme"]
- Only the theme selection that is saved in persistent storage (i.e. on the WordPress options page or, for standalone PHP users, the database.json file) will have its CSS and JS injected into the page. All other themes that you use will work just fine, but you will only be able to take advantage of their templates.
Does that answer your question? Themes are powerful but also somewhat complex, so I apologize if I'm not explaining the concepts very well. Let us know!
Go to the full post