{"id":7146,"date":"2009-11-04T09:25:15","date_gmt":"2009-11-04T09:25:15","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/random-post-link\/"},"modified":"2012-09-13T17:58:53","modified_gmt":"2012-09-13T17:58:53","slug":"random-post-link","status":"publish","type":"plugin","link":"https:\/\/lmo.wordpress.org\/plugins\/random-post-link\/","author":180901,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.1","stable_tag":"trunk","tested":"3.0.5","requires":"2.8","requires_php":"","requires_plugins":"","header_name":"Random Post Link","header_author":"scribu","header_description":"","assets_banners_color":"","last_updated":"2012-09-13 17:58:53","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/scribu.net\/wordpress\/random-post-link","header_author_uri":"http:\/\/scribu.net\/","rating":2,"author_block_rating":0,"active_installs":50,"downloads":7372,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":"1","3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[485,727],"plugin_category":[],"plugin_contributors":[77621],"plugin_business_model":[],"class_list":["post-7146","plugin","type-plugin","status-publish","hentry","plugin_tags-button","plugin_tags-redirect","plugin_contributors-scribu","plugin_committers-cfinke","plugin_committers-scribu"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/random-post-link.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Unlike the <a href=\"http:\/\/wordpress.org\/extend\/plugins\/random-redirect\/\">Random Redirect<\/a> plugin, this plugin makes sure that a user will not see the same post twice.<\/p>\n\n<p>It does this by storing a cookie containing a list of single posts that the user has seen. It then checks that list before redirecting.<\/p>\n\n<h4>Usage<\/h4>\n\n<p>Just put this line anywhere in your theme where you want the link to appear.<\/p>\n\n<pre><code>&lt;?php random_post_link(); ?&gt;\n<\/code><\/pre>\n\n<p>You can specify the text you want on the link like so:<\/p>\n\n<pre><code>&lt;?php random_post_link('Feeling lucky'); ?&gt;\n<\/code><\/pre>\n\n<p>Links: <a href=\"http:\/\/scribu.net\/wordpress\/random-post-link\">Plugin News<\/a> | <a href=\"http:\/\/scribu.net\">Author's Site<\/a><\/p>\n\n<!--section=faq-->\n<dl>\n<dt>\"Parse error: syntax error, unexpected T_CLASS...\" Help!<\/dt>\n<dd><p>Make sure your host is running PHP 5. Add this line to wp-config.php to check:<\/p>\n\n<pre><code>var_dump(PHP_VERSION);\n<\/code><\/pre><\/dd>\n<dt>What happens when there are no more posts?<\/dt>\n<dd><p>If a user has seen all the available posts, the plugin will clear the list and redirect to a random post.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>handle case when a user has seen all posts<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>initial release<\/li>\n<li><a href=\"http:\/\/scribu.net\/wordpress\/random-post-link\/rpl-1-0.html\">more info<\/a><\/li>\n<\/ul>","raw_excerpt":"Generates a link that takes a visitor to a random post, but never the same as before.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/7146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=7146"}],"author":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/scribu"}],"wp:attachment":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=7146"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=7146"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=7146"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=7146"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=7146"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=7146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}