{"id":70228,"date":"2016-05-02T13:30:23","date_gmt":"2016-05-02T17:30:23","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=70228"},"modified":"2016-07-12T03:47:10","modified_gmt":"2016-07-12T07:47:10","slug":"cherryframework-3-x-how-to-show-scheduled-post","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/cherryframework-3-x-how-to-show-scheduled-post.html","title":{"rendered":"CherryFramework 3.x. How to show scheduled posts"},"content":{"rendered":"<p>Hello! This tutorial will show you how to show scheduled posts in WordPress CherryFramework 3.x. templates.<\/p>\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=1xe3QxnGuOA?width=1280&amp;height=720\" rel=\"prettyPhoto\">CherryFramework 3.x. How to show scheduled posts<\/a>\r\n<p>In order to do such changes, please follow the steps below:<\/p>\r\n<ol>\r\n<li><p>Open the file you would like your changes to be applied to (we will use <strong>sidebar.php<\/strong>). This should be done on your server, that is why please make sure that your php file is copied to the child theme -> themeXXXX directory.<\/p><\/li>\r\n<li><p>Open the file and add the following code to the end of it:<\/p>\r\n<pre class=\"brush:php\">\r\n  &lt;?php query_posts('posts_per_page=10&amp;post_status=future'); ?&gt;\r\n  &lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?&gt;\r\n  &lt;h2&gt;&lt;?php the_title(); ?&gt;&lt;\/h2&gt;\r\n  &lt;span class=&quot;datetime&quot;&gt;&lt;?php the_time('j. F Y'); ?&gt;&lt;\/span&gt;&lt;\/p&gt;\r\n  &lt;?php endwhile;else: ?&gt;\r\n  &lt;p&gt;No future events scheduled.&lt;\/p&gt;\r\n&lt;?php endif; ?&gt;<\/pre>\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2016\/05\/WordPress.-How-to-show-scheduled-post.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2016\/05\/WordPress.-How-to-show-scheduled-post-300x124.jpg\" alt=\"WordPress. How to show scheduled post\" width=\"300\" height=\"124\" class=\"alignnone size-medium wp-image-70230\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/05\/WordPress.-How-to-show-scheduled-post-300x124.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/05\/WordPress.-How-to-show-scheduled-post-150x62.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/05\/WordPress.-How-to-show-scheduled-post-1024x422.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/05\/WordPress.-How-to-show-scheduled-post.jpg 1554w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<\/ol>\r\n<p>After you\u2019ve saved the file, make sure that you have posts, which are scheduled. In order to do so, follow the steps below:<\/p>\r\n<ol>\r\n<li><p>Enter <strong>Posts<\/strong> tab, which is located in admin panel. Open any post you need and find publish tab, which is located on the left:<\/p>\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2016\/05\/WordPress.-How-to-show-scheduled-post1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2016\/05\/WordPress.-How-to-show-scheduled-post1-300x66.jpg\" alt=\"WordPress. How to show scheduled post1\" width=\"300\" height=\"66\" class=\"alignnone size-medium wp-image-70229\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/05\/WordPress.-How-to-show-scheduled-post1-300x66.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/05\/WordPress.-How-to-show-scheduled-post1-150x33.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/05\/WordPress.-How-to-show-scheduled-post1-1024x224.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/05\/WordPress.-How-to-show-scheduled-post1.jpg 1562w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li><p>There you should change the date to future and save changes.<\/p><\/li>\r\n<\/ol>\r\n<p>That is all to be done.<\/p>\r\n\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=1xe3QxnGuOA?width=1280&amp;height=720\" rel=\"prettyPhoto\">CherryFramework 3.x. How to show scheduled posts<\/a>","protected":false},"excerpt":{"rendered":"<p>This tutorial will show you how to show scheduled posts in WordPress CherryFramework 3.x. templates.<\/p>\n","protected":false},"author":63,"featured_media":70233,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[728],"tags":[2272,1255,2132,2405],"class_list":["post-70228","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-tutorials","tag-cheryframework3","tag-posts","tag-scheduled","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/70228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=70228"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/70228\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/70233"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=70228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=70228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=70228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}