Forums

New Post Makes New sub-Page? (5 posts)

  1. Flying Monkey
    Member
    Posted 3 years ago #

    Hi. As a designer (Photoshop, xhtml, css) I am looking to use WordPress as a CMS for clients for whom I have built individual websites - not blogs. I have stripped back a template and made my own simple one with widget capability in the sidebar.

    Perhaps this is outside the scope of WordPress, but i would like clients to be able to add a post with a <!--more--> link where the first part is on the home page (as it is by default), and the rest of the post opens in a new subpage within an existing section when the user clicks the 'more' link. ie not just a subpage of 'home', but a subpage of an 'events' page or a subpage of a 'news' page or 'activities' page. Then the page can also be added to the navigation tree (preferably automatically with the Pages Widget and a Breadcrumbs Plugin), eg home > events > event1

    Any help appreciated.

  2. MichaelH
    Volunteer
    Posted 3 years ago #

    Get a feel for how the WordPress Template Hierarchy works especially when viewing a singe post (e.g. with single.php).

    Also look at Customizing_the_Read_More and Template_Tags/wp_link_pages

  3. Flying Monkey
    Member
    Posted 3 years ago #

    Hi MichaelH, thanks so much for replying. I've checked out the recommended pages and I'm still not sure I can do what I want.

    I can see that by altering the more_file in my index.php template I can change where the <!--more--> link takes the user. But, of course, it will send every new post to that same location.

    I am looking for a way that a client can have a section on their front page that has an 'in brief' type section with snippets of news, etc. all with their own title, blurb and <!--more--> link. Each one will go to a different subpage in different areas of the website; eg

    1st item is about a new event so the <!--more--> link goes to home>events>new_event
    2nd item is about a new service so the <!--more--> link goes to home>services>new_service
    3rd item is about a new article so the <!--more--> link goes to home>articles>new_article

    So the client can then just enter a new post and direct where that particular <!--more--> link takes the user (ie puts the rest of the page with the post on it)

    I'm beginning to think this is outside the WordPress paradigm.

  4. Flying Monkey
    Member
    Posted 3 years ago #

    The thing about sending the post to a different template page is that the snippet then doesn't turn up on the front page.

  5. MichaelH
    Volunteer
    Posted 3 years ago #

    When click on the more link you are directed to that post and it is displayed via the Template dictated by WordPress' Template Hierarchy. What you want will likely be in plugin territory if it exists.

    Will direct you to a plugin that allows a different template for every post http://www.nathanrice.net/download/post_templates.zip

Topic Closed

This topic has been closed to new replies.

About this Topic