Forums

Cut off the_content on single post pages (3 posts)

  1. ykk
    Member
    Posted 5 years ago #

    How can I get the the_content() template tag to cut off posts also on single post pages?

    I have a special frontpage where I want to show a certain page content and below that the newest blog posting but cut off at the more marker. I use the Filosofo Home-Page Control plugin which displays a chosen Page as the front page.

    Additionally, I have a separate template for the fron page. On the template, there is query_posts("showposts=1"); after the actual content (the front page) and then of course the wp loop with the_content().

  2. moshu
    Member
    Posted 5 years ago #

    In the setting you just described - I don't see any way to solve it. If WP "knows" that your front/main page is a Page, then it prevents the "more" tag from functioning: on Pages it just doesn't make sense.

    However, there might be a workaround, since you mentioned you already have a separate template for that page/Page :)

    Deactivate the plugin and save the template as home.php (of course, delete the lines at the top with templet name etc.)
    The home.php can act as a 'static' frontpage.

  3. ykk
    Member
    Posted 5 years ago #

    I can't really deactivate the plugin because I use Pages as the "main" content on the site. The blog postings are found in another directory (e.g. /blog/.../) which is also handled by the plugin.

    And yes, I know that using WP as an CMS is not the foremost idea of WP. Nevertheless, I wanted to give a try. With some plugins (breadcrumb, fold page list, filosofo and search pages), I got almost everything done as the site designer wanted.

Topic Closed

This topic has been closed to new replies.

About this Topic