• hello !
    The <!–more–> tag don’t work in my archive page.
    It displays the entire posts each time !
    In my template, it is like this :

    <div class=”entry”>
    <?php the_content(‘Read more…’); ?>
    </div>

    Do you know what’s the matter ?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Is that your archive.php template?

    Link?

    Thread Starter grosbouff

    (@grosbouff)

    No, it’s in a custom template page.

    Link here : https://tinyurl.com/3xujh4

    “more” can only be used in archives ???

    “more” can be used only in so-called multiple posts views: index, category archive/listing, monthly/yearly archives, search.

    No, it doesn’t work on single (it doesn’t make sense) and it doesn’t work on Pages. There is no “multi-Page” view ever in WP, so no need for it.

    Thread Starter grosbouff

    (@grosbouff)

    Hi moshu, thanks for your reply.

    But yes it has sence; for example I create one page for each category, so my hierarchy is with my pages and not with my categories. I can build a very customized menu without problems with this system.

    For each page, I have an introduction (the page itself) and then one loop with the post for the related category.

    But I don’t want to show them entirely, so… <!–more–> would be great. ??

    I create one page for each category
    Well, THAT is your problem.
    You should use Category_Templates instead and everything should work. If you are going through all this headache just for the sake of a menu… that doesn’t make sense either ??
    See this.

    Thread Starter grosbouff

    (@grosbouff)

    The thing is that I have to mix pages and categories inside a same hierarchy.

    I don’t want to build complex php scripts for menu, so I want just to call wordpress menu and treat it with scripts and formatting. So no need to update the menu when I update the blog.

    And the better deal I found have the same hierarchy for posts and pages is to include categories into pages.

    I made a special template in which I only need to edit a meta_key when writing a page to tell what categorie(s) it must include and/or exclude.
    So one page can call multiples categories, and several pages can call one unique category.

    I’m working on this since many days; I have tried categories templates, lots of plugins, and this is what I think is the best so far for me…

    Anyway, I found a plugin to have a better control on excerpts : Content Extract.

    The problem now is that if I don’t stripslashes the excerpt, html tags will stays open when the script cuts the text.
    And I want to be able to have an image in the excerpt of my post…

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