WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Continued... (12 posts)

  1. SickSquirrel
    Member
    Posted 1 year ago #

    I would like to post only part of a story on the main pages of my blog. I'd like, after the first paragraph, to see

    -- Click here to continue -- (with the text linked to the continuation)

    I was told to put the following

    <!--more--> (more was the example text)

    On my blog, it shows

    forever.

    <!–more–>

    She

    There is nothing to click on. It just continues on the main page. Years ago I would code to continue the story. I've lost my memory so have no clue how to code it.

    Help!

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Can you post a link to your site so someone can look at what's going on with that?

  3. catacaustic
    Member
    Posted 1 year ago #

    When you put in <!--more-->, did you do that in the 'Visual' or the 'Text' tab? I'm guessing that it was in the Visual tab??

    If so, then it will show up like any other text that you enter in there. Delete that bit, and look for the button above the editor window that is 'Insert More Tag' (it should be just before the spell check) and click that. it will insert the more tag in the correct place.

  4. SickSquirrel
    Member
    Posted 1 year ago #

    Hmm, I'll go check which tab I was in..... then post. Thank you

  5. SickSquirrel
    Member
    Posted 1 year ago #

    Checked it in Text, deleted what was there, clicked the "more" (no spell check; it's between code and lookup) and it added

    <!--more-->

    I then viewed post and there is nothing between the paragraphs. No code, no link.

    I just looked at Visual and between the paragraphs, on the far right, "more" is in tiny letters but there is no link, nothing to bring you to another page.

    Can't post the URL as it for those over 18.

  6. catacaustic
    Member
    Posted 1 year ago #

    You are not supposed to actually SEE it in your posts. It only shows in the visual edito ras that little indicator, and as the actual HTML comment in the text editor. But you have done it correctly. Look at it on the category or archive page and you will see the link there. It doesn't show in the editing area, or on the actual post page.

  7. SickSquirrel
    Member
    Posted 1 year ago #

    This is odd. Yesterday I swear it did not work. I just checked under category and the link says, "whatever I want." So I went to the main page; same thing :)

    Thank y'all. I will do a few stories and see if it continues to work.

  8. SickSquirrel
    Member
    Posted 1 year ago #

    Uh oh ... the code is < !--more -- > with no spaces.

    But my link says "whatever I want"

    WHERE is that edited? I can't remember which file I edit to change that to "continued, click here"

  9. Jose Castaneda
    Member
    Posted 1 year ago #

    That particular part that says: Read more is done within the_content function. If you don't already have a child theme setup I would suggest doing so if you want to make any changes to your theme. :)

  10. SickSquirrel
    Member
    Posted 1 year ago #

    Ok, you lost me. Which file says that?

    Child theme? What's that? I backup a file before changing it, in case something is wrong.

  11. SickSquirrel
    Member
    Posted 1 year ago #

    The answer is: archive.php, index.php, single.php, tag.php, page.php, tags.php

  12. SickSquirrel
    Member
    Posted 1 year ago #

    Well, that is the answer but it still says "whatever I want." The coder had told me the above in email a long time ago. I changed 5 files. Index.php didn't get changed as there was nothing to edit.

    I have a feeling that on the other theme (I changed on a different site/theme) the index page has the "whatever I want"

    The entire index.php file is

    <?php
    /**
    * Front to the WordPress application. This file doesn't do anything, but loads
    * wp-blog-header.php which does and tells WordPress to load the theme.
    *
    * @package WordPress
    */

    /**
    * Tells WordPress to load the WordPress theme and output it.
    *
    * @var bool
    */
    define('WP_USE_THEMES', true);

    /** Loads the WordPress Environment and Template */
    require('./wp-blog-header.php');

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.