WordPress.org

Ready to get started?Download WordPress

Forums

Posts on Page - 'More' Tag problem (5 posts)

  1. bbekk
    Member
    Posted 6 years ago #

    I have this kind of problem: I've created a Page (with own Template Page). On this Page I wanted to list all posts from one category. And OK, it's work fine but there is one very annoying problem: all listed posts are with full content, although I give in post's edition <!--more--> tag.

    I know that I can use 'the_excerpt' code (and it's work OK) but I need some functions that can work only with 'more' tag. I was looking for solution for this prolem but I can't find it. Can anyone help me?

  2. Dgold
    Member
    Posted 6 years ago #

    Why did you decide to create a Page to show all posts from one category, instead of just using WP's built in Category page (not a "Page"), and making a custom Category Template such as category-3.php? If you did it this way then the MORE would work.

    MORE doesn't work on Pages, I think.

    I think you see the difference between a WP Page and any other 'page' (i.e. webpage).

  3. bbekk
    Member
    Posted 6 years ago #

    Dgold, I created a Page and show there posts from the specific category 'couse I wanted to give there separate php code (some functions) and design.

    And I think that 'more' tag doesn't work with Pages too.

    And of course I know the difference between Pages in WP and webpages. :)

    I think that I use code in Archive.php, like:

    <?php if ( in_category() )

    and then do what I want in specific category.

    Well, thanks anyway.

  4. Dgold
    Member
    Posted 6 years ago #

    "I created a Page and show there posts from the specific category 'couse I wanted to give there separate php code (some functions) and design."

    But... do this with Category Templates, not with Page Templates. Then it should work I think.

    http://codex.wordpress.org/Category_Templates

  5. bbekk
    Member
    Posted 6 years ago #

    Oh, yes! Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic