Yes. Are you having an problem, or is that just a general question?
I’d like to collapse only 5 words from 10 in shortcode tag. All words are in shortcode tag 🙁
Could you help?
I know that can collapse all words but I’ve imported many posts and would like to automatize it by collapsing only 5 from 10 words without manualy posts editing.
-
This reply was modified 7 years, 3 months ago by
mkrufczyk.
do you mean that you have a sentence that is 10 words long and you want to have 5 of these words expand/collapse inline?
https://spacedonkey.de/2828/collapse-o-matic-inline-trigger-with-block-target/
do you mean that you have a sentence that is 10 words long and you want to have 5 of these words expand/collapse inline?
Yes. But a whole sentence is in shortcode.
-
This reply was modified 7 years, 3 months ago by
mkrufczyk.
Your answers are completely confusing.
What exactly are you trying to do. Please include a link to your site and be as detailed and descriptive as possible.
-
This reply was modified 7 years, 3 months ago by
twinpictures.
Look at this:
[expand tag="span" title="this trigger" targtag="span"]my ten words sentence five six seven eight nine ten[/expand]
I’ve tried to show/hide only “five six seven eight nine ten” words. Not all…
It must be in one shorcode tag…
Have you tried:
[expand tag="span" title="my ten words sentence" targtag="span"] five six seven eight nine ten[/expand]
or
my ten word sentence [expand tag="span" title="more" targtag="span"] five six seven eight nine ten[/expand]
?
It will probably be harder than I thought. The script should count words to show the last 5 words in the sentence. Unless it’s easier to show, for example, only the first five words.