Documentation talk:UBC Content Management System/Shortcodes/link with content

From UBC Wiki
Jump to: navigation, search

Contents

Thread titleRepliesLast modified
Replacement for [the_excerpt] ?316:07, 17 September 2015

Replacement for [the_excerpt] ?

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.

23:00, 24 August 2015

[the_excerpt] will work as long as you're not using it within html attributes.

04:02, 25 August 2015

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?

20:58, 26 August 2015

No! There's no shortcodes within attributes. That should be fine. Test on verf!

16:07, 17 September 2015