Firstly, let me say that this is the fourth MT Blog I have set up, and the third that uses php includes. The structure of this one is largely based on the last [www.themerriweathers.com] which works perfectly. the one with the problem is at [www.ursinecalamity.com].
Also, I triple checked- the entries are set to publish and NOT to draft! And it is NOT a cache issue....
On with the show-
I'm using php and php includes for the header, footer, and sidebar. The main index outputs as index.php and the archives are set for php.
The new entries are in the db, and their individual, date, and category archive pages generate just fine. On the main page, however, the entry does not show; nor do the dynamic lists [<MTEntries> for recent entries and <MTCategories> for a category list] on the sidebar [an include file]. In order to get the dynamic lists in the sidebar to reflect the changes, I have to save and rebuild the sidebar template, which is nothing but:
CODE
<h2>Little Calamities</h2>
<?php include ('<$MTBlogURL$>miniblog/miniblog.inc'); ?>
<br><span style="font-size:7pt">[<a href=" ">the mini archive</a>]</span>
<h2>Recent Calamities</h2>
<ul>
<MTEntries lastn="10">
<li><a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a></li>
</MTEntries>
</ul>
<h2>Recurring Calamities</h2>
<ul>
<MTCategories>
<li><a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel$></a></li>
</MTCategories>
</ul>
<?php include ('<$MTBlogURL$>miniblog/miniblog.inc'); ?>
<br><span style="font-size:7pt">[<a href=" ">the mini archive</a>]</span>
<h2>Recent Calamities</h2>
<ul>
<MTEntries lastn="10">
<li><a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a></li>
</MTEntries>
</ul>
<h2>Recurring Calamities</h2>
<ul>
<MTCategories>
<li><a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel$></a></li>
</MTCategories>
</ul>
The same goes for the main index- to get the new entries to show up, I have to save and rebuild the templates. Very curious...
The code for the index is:
CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<$MTPublishCharset$>" />
<meta name="generator" content="Movable Type <$MTVersion$>" />
<link rel="stylesheet" href="<$MTBlogURL$>styles-site.css" type="text/css" />
<link rel="alternate" type="application/atom+xml" title="Atom" href="<$MTBlogURL$>atom.xml" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<$MTBlogURL$>index.xml" />
<title><$MTBlogName encode_html="1"$></title>
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="<$MTBlogURL$>rsd.xml" />
<MTBlogIfCCLicense>
<$MTCCLicenseRDF$>
</MTBlogIfCCLicense>
<script type="text/javascript"><!--//--><![CDATA[//><!--
sfHover = function() {
var sfEls = document.getElementById("nav").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
//--><!]]></script>
</head>
<body>
<div id="container">
<div id="main">
<div id="titleblock">
<img src="http://www.ursinecalamity.com/images/titleblock.jpg"><br>
</div>
<div id="menublock">
<?php include ('<$MTBlogURL$>menu.inc'); ?><br>
</div><p>
<div id="blogentries">
<div class="content">
<MTEntries lastn="6">
<$MTEntryTrackbackData$>
<h3 id="a<$MTEntryID pad="1"$>"><$MTEntryTitle$>|<span style="font-size:x-small"><$MTEntryDate format="%x"$></span></h3>
<p><$MTEntryBody$></p>
<MTEntryIfExtended>
<p class="extended"><a href="<$MTEntryPermalink$>#more">Continue reading "<$MTEntryTitle$>"</a></p>
</MTEntryIfExtended>
<p class="posted">Posted by <$MTEntryAuthor$> at <a href="<$MTEntryPermalink valid_html="1"$>"><$MTEntryDate format="%X"$></a>
<MTEntryIfAllowComments>
| <a href="<$MTEntryPermalink archive_type="Individual"$>#comments">Comments (<$MTEntryCommentCount$>)</a>
</MTEntryIfAllowComments>
<MTEntryIfAllowPings>
| <a href="<$MTEntryPermalink archive_type="Individual"$>#trackbacks">TrackBack (<$MTEntryTrackbackCount$>)</a>
</MTEntryIfAllowPings>
| <MTEntryCategories glue="& ">
<a href="<$MTCategoryArchiveLink$>#<$MTEntryID pad="1"$>"><$MTCategoryLabel$></a>
</MTEntryCategories>
</p>
</MTEntries>
</div>
</div>
</div>
<div id="sidebar">
<?php include ('<$MTBlogURL$>sidebar.inc'); ?>
</div>
<div style="clear: both;"> </div>
<div id="footer">
<?php include ('<$MTBlogURL$>footer.inc') ?>
</div>
</div>
</div>
</body>
</html>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<$MTPublishCharset$>" />
<meta name="generator" content="Movable Type <$MTVersion$>" />
<link rel="stylesheet" href="<$MTBlogURL$>styles-site.css" type="text/css" />
<link rel="alternate" type="application/atom+xml" title="Atom" href="<$MTBlogURL$>atom.xml" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<$MTBlogURL$>index.xml" />
<title><$MTBlogName encode_html="1"$></title>
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="<$MTBlogURL$>rsd.xml" />
<MTBlogIfCCLicense>
<$MTCCLicenseRDF$>
</MTBlogIfCCLicense>
<script type="text/javascript"><!--//--><![CDATA[//><!--
sfHover = function() {
var sfEls = document.getElementById("nav").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
//--><!]]></script>
</head>
<body>
<div id="container">
<div id="main">
<div id="titleblock">
<img src="http://www.ursinecalamity.com/images/titleblock.jpg"><br>
</div>
<div id="menublock">
<?php include ('<$MTBlogURL$>menu.inc'); ?><br>
</div><p>
<div id="blogentries">
<div class="content">
<MTEntries lastn="6">
<$MTEntryTrackbackData$>
<h3 id="a<$MTEntryID pad="1"$>"><$MTEntryTitle$>|<span style="font-size:x-small"><$MTEntryDate format="%x"$></span></h3>
<p><$MTEntryBody$></p>
<MTEntryIfExtended>
<p class="extended"><a href="<$MTEntryPermalink$>#more">Continue reading "<$MTEntryTitle$>"</a></p>
</MTEntryIfExtended>
<p class="posted">Posted by <$MTEntryAuthor$> at <a href="<$MTEntryPermalink valid_html="1"$>"><$MTEntryDate format="%X"$></a>
<MTEntryIfAllowComments>
| <a href="<$MTEntryPermalink archive_type="Individual"$>#comments">Comments (<$MTEntryCommentCount$>)</a>
</MTEntryIfAllowComments>
<MTEntryIfAllowPings>
| <a href="<$MTEntryPermalink archive_type="Individual"$>#trackbacks">TrackBack (<$MTEntryTrackbackCount$>)</a>
</MTEntryIfAllowPings>
| <MTEntryCategories glue="& ">
<a href="<$MTCategoryArchiveLink$>#<$MTEntryID pad="1"$>"><$MTCategoryLabel$></a>
</MTEntryCategories>
</p>
</MTEntries>
</div>
</div>
</div>
<div id="sidebar">
<?php include ('<$MTBlogURL$>sidebar.inc'); ?>
</div>
<div style="clear: both;"> </div>
<div id="footer">
<?php include ('<$MTBlogURL$>footer.inc') ?>
</div>
</div>
</div>
</body>
</html>
I have added a new entry and then rebuilt ONLY the sidebar... you can see that it is listed there and that the link functions, and yet it does not appear on the main site.
Thanks for your input!