{"id":6910,"date":"2009-10-07T12:50:07","date_gmt":"2009-10-07T12:50:07","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/weekday-redirect\/"},"modified":"2009-10-11T20:50:23","modified_gmt":"2009-10-11T20:50:23","slug":"weekday-redirect","status":"closed","type":"plugin","link":"https:\/\/ja.wordpress.org\/plugins\/weekday-redirect\/","author":4823071,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"trunk","tested":"2.8.4","requires":"2.5","requires_php":"","requires_plugins":"","header_name":"Weekday Redirect","header_author":"moxypark","header_description":"","assets_banners_color":"","last_updated":"2009-10-11 20:50:23","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/moxypark.co.uk\/weekday-redirect\/","header_author_uri":"http:\/\/moxypark.co.uk\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1037,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[727,4062,38487],"plugin_category":[40],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-6910","plugin","type-plugin","status-closed","hentry","plugin_tags-redirect","plugin_tags-schedule","plugin_tags-weekday","plugin_category-calendar-and-events","plugin_committers-moxypark"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/weekday-redirect.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This is a WordPress plugin created to redirect to a given page on a particular day. Let\u2019s say you want certain information to be available on a certain day, like a list of events. Users could go to http:\/\/yoursite.com\/events, which would then redirect to http:\/\/yoursite.com\/events\/[day], where [day] is obviously \u201cmonday\u201d, \u201ctuesday\u201d etc, depending on what day of the week it is.<\/p>\n <p>There may already be more elegant solutions to this problem, but I wanted to build a WordPress plugin from scratch, rather than adapting an existing one. The much more efficient shortcodes system implemented in WordPres 2.5 (better than lots of plugins performing a find and replace or regular expression check) makes this really easy.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>weekday-redirect<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Place <code>[weekday-redirect]<\/code> in a page<\/li>\n<\/ol>\n\n<!--section=faq-->\n<h4>I get a \u201cHeaders already sent\u201d error<\/h4>\n <p>If you receive a PHP error similar to that above, you\u2019ll need to enable output buffering if you can. This can be done fairly simply by adding the following line to your .htaccess file. (That lives in the root folder of your website: often named \/htdocs, \/httpdocs or \/public_html.)<\/p>\n <blockquote>\n  <p>php_value output_buffering 4096<\/p>\n<\/blockquote>\n <p>This instructs PHP not to send data to the browser until the full page has bneen read by the server. (Usually, PHP sends HTML to the browser, processes a PHP block when it comes to one, sends the next bit of HTML and so on.<\/p>\n <p>If you try and instruct the browser to do something while it\u2019s in this mode, unless the instruction is right at the beginning, it\u2019ll be too late, because the browser\u2019s already receiving data. Using the output_buffering setting means PHP waits for the entire HTML page to be parsed before sending the resulting HTML to the browser, with any instructions at the beginning of the page.)<\/p>","raw_excerpt":"Redirects to a specific page for each day of the week","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/6910","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=6910"}],"author":[{"embeddable":true,"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/moxypark"}],"wp:attachment":[{"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=6910"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=6910"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=6910"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=6910"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=6910"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ja.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=6910"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}