• 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
    https://codex.www.ads-software.com/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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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’ ?

    https://codex.www.ads-software.com/Function_Reference/query_posts

    Thread Starter klauzer

    (@klauzer)

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘My theme does not support loop’ is closed to new replies.