• Hello,

    I am having trouble getting the <!–more–> tag to work on my homepage. It works on the category pages, but not on the homepage.

    I’m using the following code on the homepage to output the latest post: https://www.jamieharrop.com/code.txt

    Does anybody have any ideas of how that code could be modified to get the <!–more–> tag to work?

    Thanks in advance!

    Jamie

Viewing 2 replies - 1 through 2 (of 2 total)
  • The template tag, the_content(), will make use of <!--the more--> quicktag, so you might want to consider using that in your theme.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    That code looks like a direct query and display of the content. That’s not what you want to do.

    Write a Loop instead.

    Also, this:
    require_once("https://www.mydomain.com/wp-config.php");
    won’t work. There’s two major things wrong with it…
    1. It shouldn’t be http anything. It needs to be the local path to the file.
    2. It shouldn’t be including wp-config.php in the first place. You should require wp-blog-header.php instead.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘<!–more–> not working’ is closed to new replies.