Hello,
I’m having some trouble with a listing by month of blog entries posted. My intent is to do either of the following:
- List all posts made in that month for a specific weblog
- List all posts from all weblogs made in the month
Each weblog is under its own weblog template group
ie if there was a monday weblog, it would have a monday template group.
{exp:weblog:entries orderby="date" sort="desc" limit="100" disable="pagination|custom_fields|categories|member_data|trackbacks" }
{date_heading display="yearly"}
<h2 class="title">{entry_date format="%Y"}</h2>
{/date_heading}
{date_heading display="monthly"}
<h3 class="date">{entry_date format="%F"}</h3>
{/date_heading}
<ul>
<li><a href="http://{title_permalink={my_template_group}/index}">{title}</a></li>
</ul>
{/exp:weblog:entries}In this code, despite specifying which weblog to look up it shows me currently all the weblog entries for that month:
<h2 class="sidetitle" >Monthly Archives</h2>
<ul>
{exp:weblog:month_links weblog="{my_weblog}"}
<li><a href="http://{path={my_template_group}/archives}">{month} {year}</a></li>
{/exp:weblog:month_links}
<li><a href="http://{path={my_template_group}/archives}">Complete Archives</a></li>
</ul>