Forums

tag ignored on custom pages (3 posts)

  1. johnnydugs
    Member
    Posted 1 year ago #

    Quick and hopefully easy question: is the <!--more--> tag ignored for custom created pages?

    I have a to pages that I want to post blogs on - one for personal content and one for business related content. the business page simply uses the index.php file. However for the page that I would like more personal content to appear on, i have created a new page template and assigned it to the new page i created in the wp admin.

    when running the loop on my custom page, it outputs the posts from the proper category, but does not cut them off at the <!--more--> tag. It simply ignores the <!--more--> tag and shows the entire post. However, if i swap the_content with the_excerpt, that seems to cut off the posts. But that is not the look/functionality I am going for.

    So, how do I make the <!--more--> tag work in conjunction with <?php the_content(); ?> on my custom pages as it does on my index.php page??

    thanks a bunch!!

  2. johnnydugs
    Member
    Posted 1 year ago #

    ahhhhh ...it appears that the proper way to do this is by creating category pages with the schema "category-slug.php" or "category-id.php".

    If someone could confirm, that would be great.

    thx!

  3. alchymyth
    The Sweeper
    Posted 1 year ago #

    it appears that the proper way to do this is by creating category pages with the schema "category-slug.php" or "category-id.php".

    you can do this as well - your choice; you then have the added 'problem' of adding the link to this category into your page menu.

    using a page template is as proper as the above method.

    to get the 'more' working in page templates, you have to follow this:
    http://codex.wordpress.org/Customizing_the_Read_More#How_to_use_Read_More_in_Pages

Topic Closed

This topic has been closed to new replies.

About this Topic