{"id":11197,"date":"2010-11-15T16:31:58","date_gmt":"2010-11-15T16:31:58","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/upcoming-events-widget\/"},"modified":"2010-11-15T16:35:58","modified_gmt":"2010-11-15T16:35:58","slug":"upcoming-events-widget","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/upcoming-events-widget\/","author":209669,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0","stable_tag":"trunk","tested":"","requires":"","requires_php":"","requires_plugins":"","header_name":"Upcoming Events","header_author":"Terry Stevenson II","header_description":"","assets_banners_color":"","last_updated":"2010-11-15 16:35:58","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1167,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-11197","plugin","type-plugin","status-closed","hentry","plugin_committers-terryit3"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/upcoming-events-widget.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<ol>\n<li><p>Paste the contents of my upcoming_events.php file into the new file and save.<\/p><\/li>\n<li><p>Log in to WordPress as your administrator user and enable the plug-in. Once this plug-in has been enabled, it becomes available as <code>Upcoming Events<\/code> in your WordPress <code>Appearance &gt; Widgets<\/code> menu.<\/p><\/li>\n<li><p>Create a new category named <code>Events<\/code>. All events must be placed in this category for the plug-in to work correctly.<\/p><\/li>\n<li><p>Create a new post, choosing <code>Events<\/code> as the category. Create a Custom Field within the post named <code>Date<\/code> and assign a value in the format Y\/m\/d H:i (2010\/12\/01 16:00)  See more information on the PHP Date Function here: http:\/\/php.net\/manual\/en\/function.date.php<\/p><\/li>\n<\/ol>\n\n<p>There are some customizations that can be made to the plug-in file to help configure this plug-in for your site.<\/p>\n\n<p>If your site needs events for multiple locations, you can change the <code>&amp;tag=<\/code> options under the query_posts. (&amp;tag=location1,location2,location3,location4).  You would then tag your post accordingly.\nOn my site, I needed the event title trimmed in order to maintain a clean appearance. I used the following code to trim it.  If you need the entire title displaying, just comment it out of the code.<\/p>\n\n<p>\/\/shorten event title if it is too long...\necho '<li>'; $shorttitle = substr(the_title('','',FALSE),0,12);\necho $shorttitle; if (strlen($shorttitle) &gt;11){ echo '&hellip;'; }\n\/\/end shorten event title if too long...<\/li><\/p>\n\n<p>I\u2019m sure you will have to change some of my CSS styles to match your template (...just a heads up)<\/p>","raw_excerpt":"Paste the contents of my upcoming_events.php file into the new file and save.\nLog in to WordPress as your administrator user and enable the plug-in.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/11197","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=11197"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/terryit3"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=11197"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=11197"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=11197"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=11197"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=11197"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=11197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}