You can now use the News Manager Addons plugin (version 0.8 beta) to display future posts.
To replace News Manager's default content for the main news page, you could use a workaround like this in your template:
Change
by
[edit] Some comments:
- The snippet replaces the main news page content, but another simpler way would be to create a different page where you would display the future posts/events. Then, instead of replacing <?php get_page_content(); ?>, you would just insert this after or before it:
So the news page would be like a "past events" page.
(However, single post/event pages would still have the news page's slug, not the one of the events' one.)
- It may be more convenient to move the nm_custom_display_future(...); block to a component, and replace it by get_component(...)
To replace News Manager's default content for the main news page, you could use a workaround like this in your template:
Change
PHP Code:
<?php get_page_content(); ?>
PHP Code:
<?php if (return_page_slug() != 'news-page-slug' or nm_post_title()) {
get_page_content();
} else {
nm_custom_display_future('
<div class="nm_post">
<h3 class="nm_post_title">
<a href="{{post_link}}">{{post_title}}</a>
</h3>
<p class="nm_post_date">{{post_date}}</p>
<div class="nm_post_content">{{post_content}}</div>
</div>
');
} ?>
[edit] Some comments:
- The snippet replaces the main news page content, but another simpler way would be to create a different page where you would display the future posts/events. Then, instead of replacing <?php get_page_content(); ?>, you would just insert this after or before it:
PHP Code:
<?php if (return_page_slug() == 'events-page-slug') {
nm_custom_display_future('
<div class="nm_post">
<h3 class="nm_post_title">
<a href="{{post_link}}">{{post_title}}</a>
</h3>
<p class="nm_post_date">{{post_date}}</p>
<div class="nm_post_content">{{post_content}}</div>
</div>
');
} ?>
(However, single post/event pages would still have the news page's slug, not the one of the events' one.)
- It may be more convenient to move the nm_custom_display_future(...); block to a component, and replace it by get_component(...)