WordPress.org

Ready to get started?Download WordPress

Forums

"more" tag text after get_the_title (3 posts)

  1. mimi1314
    Member
    Posted 6 years ago #

    Hello everyone,
    In the WordPress Codex pages, showing the more tag as "...continue reading the story called [insert title]" is:

    <?php the_content("...continue reading the story called " . get_the_title('', '', false)); ?>

    However, what I want is: "...continue reading the story called [insert title] plus random text after the title".

    Does anyone know how I can do this?

    Thanks in advance.

  2. richschmidt
    Member
    Posted 6 years ago #

    I'm just guessing, but can you just add more text after it?
    <?php the_content("...continue reading " . get_the_title('', '', false) . " plus random text."); ?>

    Would that work? Or did you try it already?

  3. mimi1314
    Member
    Posted 6 years ago #

    Thanks so much!
    It worked perfectly! :)

Topic Closed

This topic has been closed to new replies.

About this Topic