Monthly Archive MIssing Posts
-
Hi,
None of my posts are showing up in the Monthly Archives. When I click on a month there are no links anymore.
-
Hi snowme
In Raindrops1.407, I tried to test whether there is an abnormality in the link of the monthly archive, the problem could not be found for me.
For confirmation, Can you show me your site?
Thank you.
daily Archive shows for me ( /2016/03/31/#post-1092 )
yearly Archive shows for me ( /2016/ )
monthly arvhive not shows ( /2016/03/ )
Exists Artive html structure but not out put content link
Not exists output contents then theme add class no-archive.( display:none; )
Please check query_posts() return value at blow highlighted code.
https://github.com/tenman/raindrops/blob/master/date.php#L123-L125
Result of query_posts () is, because the thing that core program outputs, conflict such as plug-ins might cause
This function does not remember to change for a long time.
All raindrops day archive is used date.php template.
It rename (like bad-date.php ) then show fallback archive
Thank you.
On my test site, I tried renaming date.php to bad-date.php. When I do that it shows all of the posts from that month when I click on a month in the Archives.
I then tried disabling all of my plugins and renaming bad-date.php back to date.php. When I do that no posts are listed in the Monthly archive. It doesn’t look like its a plugin conflict.
Is there anything else I can try?
I tried switching themes and the monthly archive page shows the correct posts for that month so it must be something with date.php that’s causing the problem.
A problem that is happening on your site, we went to test how this can be reproduced
date.php
line:123
} elseif ( is_month() ) { $one_month = query_posts( "posts_per_page=-1&year=$ye&monthnum=$mo" ); $output = raindrops_month_list( $one_month, $ye, $mo );
I can reproduced when $one_month value is empty array()
$one_month = query_posts( "posts_per_page=-1&year=$ye&monthnum=$mo" );
The return value of this function is, for the core function, can not be changed
Please try alternative function
If possible, Try change from query_posts to get_posts like below
date.php line:123
$one_month = get_posts( "posts_per_page=-1&year=$ye&monthnum=$mo" );
I tried changing line 123 to get_posts but it still doesnt show my monthly archive posts. I noticed that the months that show up are wrong as well.
I’m sorry
Remaining method, when you delete a date.php, archive, but can be displayed, will have the same view as the other archive pageThank you.
I was able to reproduce this problem!
This is Theme BUG
Quick Fix
functions.php line:3316
https://github.com/tenman/raindrops/blob/master/functions.php#L3316
Please change below
list( $y, $m, $d, $h, $min, $s ) = sscanf( $month->post_date, "%d-%d-%d %d:%d:%d" );
Please change the fifth argument of the list function from
$m
to$min
This bug will be fixed next version of Raindrops
Thank you
Thanks for continuing to work on this problem. I made the change and it fixed the issue. Thanks for your hard work.
- The topic ‘Monthly Archive MIssing Posts’ is closed to new replies.