Handling excerpts and exceptions
-
Suppose you have content with a common quote format like this:
“[D]riving is not as automatic as one might think; in fact, it imposes a heavy procedural workload [visual and motor demands] on cognition that . . . leaves little processing capacity available for other tasks” (Salvucci and Taatgen 107).</quote>(https://writingcommons.org/open-text/research-methods-methodologies/integrate-evidence/incorporate-evidence/453-inserting-or-altering-words-in-a-direct-quotation)
This is one reason why single brackets are not proper shortcodes.
They also make it difficult to solve the problem of including dropcaps in excerpts. That is simple, if a real shortcode is used:
https://wordpress.stackexchange.com/questions/75631/the-excerpt-or-get-the-excerpt-with-shortcode-escapeSo the best solution to both problems is to use a true shortcode that works like this: [dropcap]D[dropcap]ropcap.:
https://wordpress.stackexchange.com/questions/83477/first-letter-cutting-off-in-excerpt[dropcap] can be filtered out of the content and included in excerpts very easily by WordPress. It also makes your post content more portable. It’s much easier to search and replace a full shortcode rather than brackets around single letters, which may not be intended as dropcaps at all.
- The topic ‘Handling excerpts and exceptions’ is closed to new replies.