WordPress.org

Ready to get started?Download WordPress

Forums

My theme does not support loop (3 posts)

  1. klauzer
    Member
    Posted 3 years ago #

    When I create a new page I want to show a summary on the "home" page. Right now my theme does not support it.

    I have created a new file called summery.php from my index.php.

    I have added a page template from here
    http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates
    But there are 3 code templates, can anyone tell me which I should use?

    Right now I am using the first one Archives with Content
    But this is not working, should I change something there?

  2. alchymyth
    Forum Moderator
    Posted 3 years ago #

    these page templates are only examples, to show what you could do with this kind of template; they are no 'copy/paste' codes that you should directly use.
    they need to be adapted to the html structure and design of your theme.

    often, one line with a custom query is enough to get what you want.

    can you define: 'summary' ?

    http://codex.wordpress.org/Function_Reference/query_posts

  3. klauzer
    Member
    Posted 3 years ago #

    With summary I mean what every page I create I want to show some short description of this page on the home page.

    Or maybe it is possible to attach a new post to a page? With this I can show a short summary on the home page and if visitors want to read more they can click on "more" button.
    I have looked into your link. But still very confused on which custom query I should use.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.