WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Is There a More Tag Possibility for Pages? (2 posts)

  1. chaseman
    Member
    Posted 3 years ago #

    The theme I'm developing has blurbs on the front page, and the user can simply add those blurbs by creating a page. Now I want the user to decide where to break up the blurb with a "read more" button. And when a visitor clicks on the button he gets led to the page with the full content.

    I know I can achieve something similar with get_the_excerpt, though I'd like the user to decide where to break off the page content.

  2. chaseman
    Member
    Posted 3 years ago #

    Ok I found it out, for everybody who is interested:

    <?php global $more;
    	  $more = false;
    	  echo get_the_content('Read more'); ?>

    Set the global $more to false before fetching the content.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.