Timeline for How to make a shortcode with a line break in it parse correctly?
Current License: CC BY-SA 3.0
15 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 8, 2017 at 23:55 | vote | accept | user38365 | ||
Oct 18, 2016 at 21:35 | answer | added | user38365 | timeline score: 0 | |
Oct 14, 2016 at 1:22 | comment | added | user38365 | @MarkKaplun I did try that just a few minutes ago. No luck. | |
Oct 14, 2016 at 1:15 | comment | added | Mark Kaplun | what you can try is to properly close the shortcodes with /] instead of ] | |
Oct 14, 2016 at 1:07 | comment | added | Mark Kaplun | in that case, I am not sure there is anything smarter that anyone can tell you except for writing them in one line :( | |
Oct 14, 2016 at 0:58 | comment | added | user38365 | @MarkKaplun I'm the only user, and likely always so. | |
Oct 14, 2016 at 0:58 | comment | added | user38365 | @TomJNowell There are some base parameters that cover first level permissions and parent page id. Then there's the data parameters that control permissions (paraA in the example) and the page ids (paraB in the example). | |
Oct 14, 2016 at 0:57 | comment | added | Mark Kaplun | agree with @TomJNowell here. complex shortcodes are hard for users to use, if it is that complex that you need to split it on several lines just to be readable then you might need to rethink what you are trying to do, | |
Oct 14, 2016 at 0:46 | comment | added | Tom J Nowell♦ | hmmm, if the shortcode just lists links with some custom logic, then why do they need so many parameters? I get the feeling a huge chunk of context is missing here | |
Oct 14, 2016 at 0:40 | comment | added | user38365 | @TomJNowell The end user doesn't see a table. They see a list of links that they have access to view. The data table is the stuff I put in the shortcode that controls permissions and page links. | |
Oct 14, 2016 at 0:37 | comment | added | Tom J Nowell♦ | This likely has more to do with parsing shortcodes in core, but if the goal of this is to make a super verbose shortcode for creating tables, then there are plugins that give visual UIs for that, and of course, why not have a table shortcode with nested shortcodes instead of hundreds of parameters? Keep in mind that any answer should answer your question, if you have another question you can ask that in a new question | |
Oct 13, 2016 at 23:44 | comment | added | user38365 | Is there an escape character that you can use in shortcodes? Probably not? wordpress.stackexchange.com/questions/33960/… | |
Oct 13, 2016 at 23:40 | comment | added | user38365 | @TomJNowell Nothing prevents them from being inline. It's just in the way I intend to use the shortcode, there will be a series of tens of them, most with at least 10 parameters each. It's basically a data table, so I would like to be able to look at it like that when I'm editing. It helps me keep track of everything. As to why they are complicated on their own, it's way more involved then I think you'd find helpful to answer the question. | |
Oct 13, 2016 at 23:36 | comment | added | Tom J Nowell♦ | Can you provide a little context as to why you need such complex shortcodes that linebreaks are necessary? What prevents them from simply being on a single line? | |
Oct 13, 2016 at 23:30 | history | asked | user38365 | CC BY-SA 3.0 |