|
OnThisDayWPPluginUsage
How to use On this day plugin
P-OnThisDayWP [OTD | Screenshots | Installation and Upgrading | Usage | Customization | Search Form] There are three ways to use this plugin. WidgetGo to Presentation/Widgets, drag widget "On this day" from Available Widgets, then drop it onto Sidebar. It results like (in default theme)
Note:
Automatically appendsYou can check these two options under General Options in On this day Options page:
If you enable them, then the "On this day..." list will be appended right after post content. Manually calls OTDList()You can call OTDList() to get the list where you want to show. If you call this function within posts loop, then it will return posts which have same calendar date as current post. For example, you can have <?php while (have_posts()) : the_post(); ?> [...] <div class="post-onthisday"> <h2>On this day...</h2> <?php OTDList(); ?> </div> [...] <?php endwhile;?> in index.php of your template. You only need to take care the title of this list, then call OTDList(). In this mode, it uses templates in Single post mode Options or Multi-posts mode Options In sidebar.php, <div class="sidebar-item-content"> <?php OTDList(); ?> </div> This use template of Widget Options. This results posts which have same calendar date as today. If visitor is reading a single post or page and Lists same calendar date posts to the post in single post mode of Widget Options is checked, then OTD plugin will list same calendar date posts as current post or page. |