Customizable ‘sectioning’ quicktags *anywhere* in a Post’s content
-
To the wise sages of WP,
I’d like to be able to add a quick tag to the body of all my posts at any point so that the text between the open and close sections display only on non-permalink pages (index.php/category.php) whilst the permalink page (single.php) displays as normal.
For example I have a single post here regarding visits to a charity funded school. The school visit is displayed on single-x.php and a caption, that is selected from the post’s content, is displayed in place of ‘the_content’ function on index.php and/or category.php.
To explain further:
Single.php contains a report of a visit to school-10. The school category page displays a synopsis of the school visit but it is a *custom selection* taken from some point in the body of the post.
“this is a report of school 10… here we have lots of writing…<show caption> These lines of text will be shown on the non-permalink pages for this post…..<end show caption>…. some more writing before the report ends.
In this case the_excerpt or any number of x words at the start of a post don’t often suit my purpose when it comes to describing it. I’ve looked at the_excerpt(reloaded) plugin, coffee-to-code’s ‘hide and cut’ plugin and an interesting node at https://www.ads-software.com/support/topic/6121 but no luck.
Can anyone suggest a way to do this? The school ‘synopsis’ page is given here.
Kind Regards,
Steve
- The topic ‘Customizable ‘sectioning’ quicktags *anywhere* in a Post’s content’ is closed to new replies.