Documentation talk:UBC Content Management System/Shortcodes/link with content
- [View source↑]
- [History↑]
Contents
Thread title | Replies | Last modified |
---|---|---|
Replacement for [the_excerpt] ? | 3 | 16:07, 17 September 2015 |
Thanks for building this workaround. Can you tell me if nesting [the_excerpt] within the loop will result in the same issues as the other template tags?
If so, is there a workaround for that? I have a custom layout that displays the content of the excerpt field.
Thank you.
[the_excerpt] will work as long as you're not using it within html attributes.
RichardTape (talk)
Here's the code I'm working with:
[loop query="posts_per_page=1&category_name=top-story"] <article class="latest-story">[image_with_src img_size="large"] <h4>[link_with_content]</h4> [the_excerpt] </article> [/loop]
Will those 'article' tags cause problems?
No! There's no shortcodes within attributes. That should be fine. Test on verf!
RichardTape (talk)