I’m trying to use the wp configuration archives on a MODx blog set-up. It worked alright when it went to the default (createdon), but doesn’t seem to be working with pub_date. And, no, I’m not using MySQL 5.0.51, but it’s even older, 5.0.45. This site is using MODx 1.0.3.
Here’s my Ditto call on the target page:
<h1>Posts from [+wp_month+] [+wp_year+]</h1>
[!Ditto? &id=`wp` &parents=`2` &tpl=`ditto_blog` &extenders=`summary,dateFilter,tagging` &dateSource=`pub_date` &tagData=`documentTags` &tagDelimiter=`, ` &total=`all`!]
This part works well once the archive link goes to the correct month.
Here’s my Reflect call in the blog sidebar:
[[Reflect? &config=`wordpress` &targetID=`63` &dittoSnippetParameters=`parents:2` &dateFilterSource=`pub_date` &sortBy=`pub_date` &id=`wp` &getDocuments=`1`]]
With this snippet call, it seems to build the monthly archive links for months that have posts based on ’createdon’. When I change $dateFilterSource to &dateSource, it doesn’t seem to find any posts and reverts back to Dec.1969, probably the oldest year programmed into the snippet.
Can anyone see what I’m missing?
Thanks!
I have the same problem with reflect. All other date fields work except pub_date. Did you find a fix for this?
Hi tkfm,
That worked! That was too easy.
Thanks