• Brand new at this. I am content editor for a site, with intermittent assistance from a remote admin. Before writing this, search revealed several clues but not too sure they are referring to what I want.

    I use “read more” code on posts and its very useful. Now turning to my pages…

    On my home page I have several paragraphs that are long… I want to display say the first sentence for each, then a “read more” indicator, then move to the next para. When someone clicks on the “read more” I want the sentence to expand to the full para on the home page (not linked to another page)… but the rest of the page content to continue below including any subsequent para’s with “read more” still unexpanded.

    Can this be done, especially, can it be done by simply putting code into the content?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I don’t know how to do that in php. Here is a theme that does something similar to what you are wanting using a script called mootools only the title of each post is displayed. You may be able to use something like that to achieve this result.

    I’m also thinking you might be able to set <?php the_excerpt(); ?> inside the loop with a link to <?php the_content(); ?> also within the loop. But, again, I don’t know if that will work. WordPress might display the excerpt and the content if you have both functions in the loop even if one is inside a link. I would definitely make a copy of my index.php file before playing around with it.

    Good luck.

    Abbie

    (@abbiesanderson)

    There might be a plugin that will make that easy for you. Perhaps the third one down on this page?

    https://www.ads-software.com/extend/plugins/search.php?q=read+more&sort=

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Static page and wanting "read more" effect in text’ is closed to new replies.