<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>THE MOLITOR FORUMS &#187; Topic: Calendar not showing all the events it should</title>
		<link>http://www.themolitor.com/forums/topic/calendar-not-showing-all-the-events-it-should</link>
		<description>THE MOLITOR FORUMS &#187; Topic: Calendar not showing all the events it should</description>
		<language>en-US</language>
		<pubDate>Tue, 28 Apr 2026 21:03:37 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.themolitor.com/forums/search.php</link>
		</textInput>
		<atom:link href="http://www.themolitor.com/forums/rss/topic/calendar-not-showing-all-the-events-it-should" rel="self" type="application/rss+xml" />

		<item>
			<title>THE MOLITOR on "Calendar not showing all the events it should"</title>
			<link>http://www.themolitor.com/forums/topic/calendar-not-showing-all-the-events-it-should#post-31527</link>
			<pubDate>Fri, 24 Oct 2014 14:00:04 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">31527@http://www.themolitor.com/forums/</guid>
			<description><p>Hi there,</p>
<p>If you're dealing with a lot of posts, I do recommend periodically deleting older files (or moving them to an "archive" category,etc.). Maybe there's a plugin out there that can do this for you?</p>
<p>Best,</p>
<p>Chris
</p></description>
		</item>
		<item>
			<title>sginsbe on "Calendar not showing all the events it should"</title>
			<link>http://www.themolitor.com/forums/topic/calendar-not-showing-all-the-events-it-should#post-31519</link>
			<pubDate>Fri, 24 Oct 2014 12:08:49 +0000</pubDate>
			<dc:creator>sginsbe</dc:creator>
			<guid isPermaLink="false">31519@http://www.themolitor.com/forums/</guid>
			<description><p>Thanks for your response!</p>
<p>Is there a way to solve this in a more long-term way? As you said, my client is using the calendar pretty heavily, so I would probably have to keep changing the query to pull more and more posts. All I can think of is periodically doing a bulk un-publish of many older/expired posts so they aren't pulled by the query. Any other solutions would be welcome, though!
</p></description>
		</item>
		<item>
			<title>THE MOLITOR on "Calendar not showing all the events it should"</title>
			<link>http://www.themolitor.com/forums/topic/calendar-not-showing-all-the-events-it-should#post-31516</link>
			<pubDate>Fri, 24 Oct 2014 11:57:07 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">31516@http://www.themolitor.com/forums/</guid>
			<description><p>Hi there,</p>
<p>Thanks for the insight and examples to help explain your findings! </p>
<p>I arbitrarily set the max to 200 thinking most users wouldn't exceed that number. Since you seem to be blowing through that number, it's more than fine to increase 200 to any number you need to display your posts.</p>
<p>Best,</p>
<p>Chris
</p></description>
		</item>
		<item>
			<title>sginsbe on "Calendar not showing all the events it should"</title>
			<link>http://www.themolitor.com/forums/topic/calendar-not-showing-all-the-events-it-should#post-31511</link>
			<pubDate>Fri, 24 Oct 2014 11:29:56 +0000</pubDate>
			<dc:creator>sginsbe</dc:creator>
			<guid isPermaLink="false">31511@http://www.themolitor.com/forums/</guid>
			<description><p>I am having this same issue and I think I might have figured out what's going on, though I don't yet know how to solve it.</p>
<p>What I think is happening is that the query pulls the first 200 published posts it finds, starting with the oldest. Then it eliminates any expired posts and shows the rest.</p>
<p>So say we pull 200 posts, and 150 of them are expired. The calendar only displays 50 events. Since we pulled from the oldest first, many of the posts will be expired.</p>
<p>When you change the number to 500, it just pulls more posts to begin with, so 500 - 150 expired posts = 350 posts displayed.</p>
<p>If I change the query to have order=DESC instead, I get many more posts since we are going from newest first. However, then the calendar itself displays in descending order, which is not ideal.</p>
<p>This is just a guess on my part about what's going on, but it seems to make sense with how things look on my site.
</p></description>
		</item>
		<item>
			<title>THE MOLITOR on "Calendar not showing all the events it should"</title>
			<link>http://www.themolitor.com/forums/topic/calendar-not-showing-all-the-events-it-should#post-26974</link>
			<pubDate>Wed, 05 Feb 2014 10:47:31 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">26974@http://www.themolitor.com/forums/</guid>
			<description><p>Thanks for following up!</p>
<p>Best,</p>
<p>Chris
</p></description>
		</item>
		<item>
			<title>nataliaenredada on "Calendar not showing all the events it should"</title>
			<link>http://www.themolitor.com/forums/topic/calendar-not-showing-all-the-events-it-should#post-26963</link>
			<pubDate>Wed, 05 Feb 2014 09:31:59 +0000</pubDate>
			<dc:creator>nataliaenredada</dc:creator>
			<guid isPermaLink="false">26963@http://www.themolitor.com/forums/</guid>
			<description><p>Hi Chris, sorry for delay in my amswer.<br />
For now is resolved since it's working with that number changed...</p>
<p>Best<br />
Natalia
</p></description>
		</item>
		<item>
			<title>THE MOLITOR on "Calendar not showing all the events it should"</title>
			<link>http://www.themolitor.com/forums/topic/calendar-not-showing-all-the-events-it-should#post-26685</link>
			<pubDate>Mon, 27 Jan 2014 09:33:36 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">26685@http://www.themolitor.com/forums/</guid>
			<description><p>Hi there,</p>
<p>Thanks for clarifying. I'm not sure why changing the number would make any difference. At least not when you're dealing with less than 200 posts.</p>
<p>For now, is the issue resolved for you?</p>
<p>Let me know.</p>
<p>Best,</p>
<p>Chris
</p></description>
		</item>
		<item>
			<title>nataliaenredada on "Calendar not showing all the events it should"</title>
			<link>http://www.themolitor.com/forums/topic/calendar-not-showing-all-the-events-it-should#post-26668</link>
			<pubDate>Sat, 25 Jan 2014 05:24:35 +0000</pubDate>
			<dc:creator>nataliaenredada</dc:creator>
			<guid isPermaLink="false">26668@http://www.themolitor.com/forums/</guid>
			<description><p>Hi Chris. No no, I didn't explain myself well.</p>
<p>I tried that second suggestion about removing the expiration check (including that final bracket) and then the calendar showed all the events ever published including expired ones. So that was not the point, and I undid that change and included the expiration check again.</p>
<p>After that, and just to try, I changed the 200 limit and the calendar now is working well.<br />
That's why I think issue is somehow related with that limit, which maybe is affecting the whole number of posts ever published (and not only the pending ones).</p>
<p>Hope is more clear now, sorry about my english :)</p>
<p>Best regards<br />
Natalia
</p></description>
		</item>
		<item>
			<title>THE MOLITOR on "Calendar not showing all the events it should"</title>
			<link>http://www.themolitor.com/forums/topic/calendar-not-showing-all-the-events-it-should#post-26658</link>
			<pubDate>Fri, 24 Jan 2014 12:36:27 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">26658@http://www.themolitor.com/forums/</guid>
			<description><p>Hi there,</p>
<p>If removing the expiration code works, it means the posts you're trying to load are expired.</p>
<p>Best,</p>
<p>Chris
</p></description>
		</item>
		<item>
			<title>nataliaenredada on "Calendar not showing all the events it should"</title>
			<link>http://www.themolitor.com/forums/topic/calendar-not-showing-all-the-events-it-should#post-26656</link>
			<pubDate>Fri, 24 Jan 2014 11:16:36 +0000</pubDate>
			<dc:creator>nataliaenredada</dc:creator>
			<guid isPermaLink="false">26656@http://www.themolitor.com/forums/</guid>
			<description><p>Hi, yes, I had forgotten the closing bracket... tried again with that bracket out and then the calendar shows all the events ever published :O</p>
<p>Then just to try I changed the 200 limit here: "$wp_query-&#62;query('order=ASC&#38;cat='.$eventCat.'&#38;showposts=200'.'&#38;paged='.$paged);" to 500 and is working!!</p>
<p>Why? Maybe there is a little bug and the 200 hundred limit affects to the whole number of events ever published?? (there are 242 ones) What do you think about Chris? I would like to know the reason behind the issue though is working now :)</p>
<p>Best<br />
Natalia
</p></description>
		</item>
		<item>
			<title>THE MOLITOR on "Calendar not showing all the events it should"</title>
			<link>http://www.themolitor.com/forums/topic/calendar-not-showing-all-the-events-it-should#post-26655</link>
			<pubDate>Fri, 24 Jan 2014 10:52:39 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">26655@http://www.themolitor.com/forums/</guid>
			<description><p>Hi there,</p>
<p>Don't forget the closing bracket I mentioned...</p>
<pre><code>}//END EXPIRATION CHECK</code></pre>
<p>Let me know if that helps.</p>
<p>Best,</p>
<p>Chris
</p></description>
		</item>
		<item>
			<title>nataliaenredada on "Calendar not showing all the events it should"</title>
			<link>http://www.themolitor.com/forums/topic/calendar-not-showing-all-the-events-it-should#post-26651</link>
			<pubDate>Fri, 24 Jan 2014 10:44:13 +0000</pubDate>
			<dc:creator>nataliaenredada</dc:creator>
			<guid isPermaLink="false">26651@http://www.themolitor.com/forums/</guid>
			<description><p>Hi Chris.<br />
- if I remove "&#38;cat='.$eventCat.'" I see fewer events (four less). All of them belong to the main events category and to a child one.<br />
- maybe I didn't understand you well, but if I remove "if(strtotime(get_the_time('Y-m-d')) &#62;= strtotime(date('Y-m-d'))){" I get this "Parse error: syntax error, unexpected '}' in C:\xampp\htdocs\afandeplan\wp-content\themes\eventure\calendar.php on line 59"</p>
<p>Best<br />
Natalia
</p></description>
		</item>
		<item>
			<title>THE MOLITOR on "Calendar not showing all the events it should"</title>
			<link>http://www.themolitor.com/forums/topic/calendar-not-showing-all-the-events-it-should#post-26647</link>
			<pubDate>Fri, 24 Jan 2014 09:49:19 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">26647@http://www.themolitor.com/forums/</guid>
			<description><p>Hi there,</p>
<p>There are only two sections of the calendar.php template file code that filter out posts. One is the main loop...<br />
<pre><code>$wp_query-&#62;query(&#039;order=ASC&#38;cat=&#039;.$eventCat.&#039;&#38;showposts=200&#039;.&#039;&#38;paged=&#039;.$paged);</code></pre>
<p>The other is the expiration check...</p>
<pre><code>//CHECK IF EVENT HAS EXPIRED
if(strtotime(get_the_time(&#039;Y-m-d&#039;)) &#62;= strtotime(date(&#039;Y-m-d&#039;))){</code></pre>
<p>With the loop, it's only loading posts that are in the main event category you select in the theme options. For the expiration check, it's only loading posts that haven't expired (i.e. the date is in the future).</p>
<p>To troubleshoot this, try removing <code>&#38;cat=&#039;.$eventCat.&#039;</code> from the loop code in calendar.php. If that works, it means the posts you're trying to load aren't in the main event category.</p>
<p>If that doesn't help, try removing the expiration check above (as well as the closing <code>}//END EXPIRATION CHECK</code> portion at the bottom of the file. If that works, it means the posts you're trying to load are expired.</p>
<p>Let me know if that helps. </p>
<p>Best,</p>
<p>Chris
</p></description>
		</item>
		<item>
			<title>nataliaenredada on "Calendar not showing all the events it should"</title>
			<link>http://www.themolitor.com/forums/topic/calendar-not-showing-all-the-events-it-should#post-26637</link>
			<pubDate>Fri, 24 Jan 2014 04:45:46 +0000</pubDate>
			<dc:creator>nataliaenredada</dc:creator>
			<guid isPermaLink="false">26637@http://www.themolitor.com/forums/</guid>
			<description><p>Hi again Chris. I've tried that and conflict is still there. See the print screen: <a href="https://www.dropbox.com/s/9ot1tepr6mxynls/localtest.JPG" rel="nofollow">https://www.dropbox.com/s/9ot1tepr6mxynls/localtest.JPG</a></p>
<p>It should show 62 events and it is only showing 28. Just like in the live web: <a href="http://afandeplan.com/" rel="nofollow">http://afandeplan.com/</a> I've got my customer complaining about this :(</p>
<p>Best<br />
Natalia
</p></description>
		</item>
		<item>
			<title>THE MOLITOR on "Calendar not showing all the events it should"</title>
			<link>http://www.themolitor.com/forums/topic/calendar-not-showing-all-the-events-it-should#post-26520</link>
			<pubDate>Mon, 20 Jan 2014 15:14:04 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">26520@http://www.themolitor.com/forums/</guid>
			<description><p>Hi there,</p>
<p>I don't see anything in the default code of the theme that would prevent posts from showing in the calendar as long as they aren't expired and are assigned to the event category you specify.</p>
<p>Just to rule out any customizations as a possible cause, please try using a default setup of the theme to see if the conflict still occurs.</p>
<p>Let me know. We can continue to troubleshoot this if the issue persists.</p>
<p>Best,</p>
<p>Chris
</p></description>
		</item>
		<item>
			<title>nataliaenredada on "Calendar not showing all the events it should"</title>
			<link>http://www.themolitor.com/forums/topic/calendar-not-showing-all-the-events-it-should#post-26518</link>
			<pubDate>Mon, 20 Jan 2014 14:59:59 +0000</pubDate>
			<dc:creator>nataliaenredada</dc:creator>
			<guid isPermaLink="false">26518@http://www.themolitor.com/forums/</guid>
			<description><p>Yes Chris I have. The parent event category is "Plans" and the other categories are child categories. Events not appearing in the calendar belong to the same categories that events been shown so...</p>
<p>Best<br />
Natalia
</p></description>
		</item>
		<item>
			<title>THE MOLITOR on "Calendar not showing all the events it should"</title>
			<link>http://www.themolitor.com/forums/topic/calendar-not-showing-all-the-events-it-should#post-26511</link>
			<pubDate>Mon, 20 Jan 2014 14:04:57 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">26511@http://www.themolitor.com/forums/</guid>
			<description><p>Hi there,</p>
<p>Can you verify that you have a parent event category with all other categories as the child category?</p>
<p>Let me know.</p>
<p>Best,</p>
<p>Chris
</p></description>
		</item>
		<item>
			<title>nataliaenredada on "Calendar not showing all the events it should"</title>
			<link>http://www.themolitor.com/forums/topic/calendar-not-showing-all-the-events-it-should#post-26504</link>
			<pubDate>Mon, 20 Jan 2014 12:09:19 +0000</pubDate>
			<dc:creator>nataliaenredada</dc:creator>
			<guid isPermaLink="false">26504@http://www.themolitor.com/forums/</guid>
			<description><p>Hi Chris thanks for answering so quick. I know that, but the point is that starting tomorrow (the 21st) there are 66 events published, and the calendar is showing only 40.</p>
<p>I'm squeezing my brain but no way :(</p>
<p>Best<br />
Natalia
</p></description>
		</item>
		<item>
			<title>THE MOLITOR on "Calendar not showing all the events it should"</title>
			<link>http://www.themolitor.com/forums/topic/calendar-not-showing-all-the-events-it-should#post-26501</link>
			<pubDate>Mon, 20 Jan 2014 11:34:31 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">26501@http://www.themolitor.com/forums/</guid>
			<description><p>Hi there,</p>
<p>I see a lot of posts you have are expired. All expired posts are excluded from the calendar.</p>
<p>Let me know if that helps.</p>
<p>Best,</p>
<p>Chris
</p></description>
		</item>
		<item>
			<title>nataliaenredada on "Calendar not showing all the events it should"</title>
			<link>http://www.themolitor.com/forums/topic/calendar-not-showing-all-the-events-it-should#post-26487</link>
			<pubDate>Mon, 20 Jan 2014 07:37:51 +0000</pubDate>
			<dc:creator>nataliaenredada</dc:creator>
			<guid isPermaLink="false">26487@http://www.themolitor.com/forums/</guid>
			<description><p>Hi Chris and everybody around the forum. I've got an X-file with the calendar on my web. Calendar is not showing the 200 events it is supposed to show. I've read on other posts that's controlled in calendar.php (which I didn't edit at all) and looking for the code it is still there [$wp_query-&#62;query('order=ASC&#38;cat='.$eventCat.'&#38;showposts=200'.'&#38;paged='.$paged);]</p>
<p>Can you please help me with this? I can't find what's going wrong :(<br />
The site is: <a href="http://afandeplan.com/" rel="nofollow">http://afandeplan.com/</a></p>
<p>Thanks in advance Chris</p>
<p>Natalia
</p></description>
		</item>

	</channel>
</rss>
