• Hi!

    I’m new to WP and I found this issue I cannot resolve. I visit the other day the AWeber blog and notice they use quicktag [!–more–] and Title of the post into the links of their home page.

    And the link looks like:

    Continue reading “AWeber 10th Anniversary”

    (examples here: https://www.aweber.com/blog/)

    So I try to do the same but the best line I can find was:

    [?php the_content(“Continue reading ” . the_title(”, ”, false)); ?]

    … which makes my link look like this:

    Continue reading eZine Content For FREE

    (example here: https://www.internetmarketingprofitscenter.com/blog/)

    The question is: do you have any ideas HOW to insert ” “ into links to looks like:

    Continue reading “eZine Content For FREE”

    Thanks,

    Valeriu

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you are using double quotes to define your strings, you have to escape any double quotes in that string. Like this:

    <?php the_content("Continue reading \"" . the_title('', '', false) . "\""); ?>

    Or you could just use single quotes for the string, and use double quotes without escaping:

    <?php the_content('Continue reading "' . the_title('', '', false) . '"'); ?>

    Thread Starter valeriu

    (@valeriu)

    Thank you Dagon!

    It’s working like a charm.

    Valeriu

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Help: Include Title in “More”’ is closed to new replies.