FAQ: No Entries on Start Page

Question

The start page of my weblog only shows one entry. However, there are several published entries in the database. What has happened?

Answer

The start page is styled by a template. It is the so-called Main Index Template. Within this template you will find an MTEntries tag. This tag loops over all published entries and outputs a defined number of all entries to the start page.

If the template only shows...

<MTEntries>

then all entries that were published during the last X days are printed. The number X is taken from the weblog configuration (see weblog config, preferences, general settings, number of days displayed). If nothing has been published within this period, no entry will be printed.

I prefer, writing the following into the template.

<MTEntries lastn="10">

Then the 10 last entries will be printed. It does not matter, how far away they have been published.

If you change the Main Index Template, you have to rebuild the indexes - or simply rebuild the entire site.

mgs

Feedback is welcome!

What do you think about this entry? Was it interesting or boring? I would like to hear your comments. If the text was helpful, please consider setting a link to http://www.movable-type-weblog.com/.

No spam please!

For protecting this weblog I have installed the MT-Approval Plugin. You have to view a new comment in preview mode, before it is saved on the server. Moreover, I will view your comment manually, before it is published. You can find more information on the subject in the entry Weblog Spamming Basics.

With an active TypeKey session, your comment will be published immediately.

Post a new comment

TypeKey has temporarily been disabled at this location. Please create your comment without using TypeKey or log in from the preview dialog.




Remember Me?