{"id":35456,"date":"2015-04-01T07:54:57","date_gmt":"2015-04-01T07:54:57","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/genius-404\/"},"modified":"2015-04-01T07:54:57","modified_gmt":"2015-04-01T07:54:57","slug":"genius-404","status":"publish","type":"plugin","link":"https:\/\/arg.wordpress.org\/plugins\/genius-404\/","author":14357106,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"trunk","tested":"4.1.42","requires":"2.6","requires_php":"","requires_plugins":"","header_name":"genius 404","header_author":"Hussam Hussien","header_description":"","assets_banners_color":"de5239","last_updated":"2015-04-01 07:54:57","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/atastypixel.com\/blog\/wordpress\/plugins\/genius-404\/","header_plugin_uri":"http:\/\/atastypixel.com\/blog\/wordpress\/plugins\/genius-404\/","header_author_uri":"http:\/\/hussam7ussien.blogspot.com\/","rating":3,"author_block_rating":0,"active_installs":10,"downloads":2176,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":"1","4":0,"5":0},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1125145","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["2.0"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[905,31962,925,944],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-35456","plugin","type-plugin","status-publish","hentry","plugin_tags-905","plugin_tags-genius-404","plugin_tags-redirection","plugin_tags-search","plugin_committers-hussam7ussien"],"banners":{"banner":"https:\/\/ps.w.org\/genius-404\/assets\/banner-772x250.png?rev=1125145","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/genius-404_de5239.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Save your visitors from unhelpful 404 errors!<\/p>\n\n<p>Instead of quickly giving up when a visitor reaches content that doesn't exist, make an effort to guess what they were\nafter in the first place.  This plugin will perform a search of your posts, pages, tags and categories, using keywords from the requested\nURL.  If there's a match, redirect to that content instead of showing the error.  If there's more than one match, the\n404 template can use some template tags to provide a list of suggestions to the visitor.<\/p>\n\n<h3>Template tags<\/h3>\n\n<p><em><code>genius404_has_suggestions<\/code><\/em><\/p>\n\n<p>Returns true if there are some suggestions, false otherwise<\/p>\n\n<p><em><code>genius404_get_suggestions<\/code><\/em><\/p>\n\n<p>Retrieve an array of post objects for rendering manually.<\/p>\n\n<p><em><code>genius404_suggestions<\/code><\/em><\/p>\n\n<p>Draw a list of suggested posts.<\/p>\n\n<p>Pass the parameter \"list\" to render suggestions as a list.<\/p>\n\n<p><em><code>genius404_loop<\/code><\/em><\/p>\n\n<p>Query posts for use in a Loop. Eg:<\/p>\n\n<pre><code>&lt;?php genius404_loop(); ?&gt;\n&lt;?php while (have_posts()) : the_post(); ?&gt;\n    &lt;h2&gt;&lt;a href=\"&lt;?php the_permalink() ?&gt;\"&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;\/h2&gt;\n    &lt;?php the_excerpt(); ?&gt;\n&lt;?php endwhile; ?&gt;\n<\/code><\/pre>\n\n<p>Note that the loop will not display pages correctly, as it is not built to support them. It is recommended that if you use\na loop like that above, do not enable searching of pages.<\/p>\n\n<p><em><code>genius404_get_search_terms<\/code><\/em><\/p>\n\n<p>Retrieve an array of search terms used to populate the suggestions list, for use with contextual highlighting, etc.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Unzip the package, and upload <code>genius404<\/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>&lt;?php genius404_suggestions() ?&gt;<\/code> in your 404 template to list suggested posts, or see 'Template tags' for more information.<\/li>\n<\/ol>","raw_excerpt":"Automatically redirect to the content the user was most likely after, or show suggestions, instead of showing an unhelpful 404 error.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/arg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/35456","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/arg.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/arg.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=35456"}],"author":[{"embeddable":true,"href":"https:\/\/arg.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/hussam7ussien"}],"wp:attachment":[{"href":"https:\/\/arg.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=35456"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/arg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=35456"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/arg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=35456"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/arg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=35456"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/arg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=35456"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/arg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=35456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}