Plugin hau ez da probatu WordPressen azken 3 bertsio garrantzitsuenekin. Baliteke, jada, mantentze edo euskarririk ez izatea, eta, WordPressen bertsio berriagoekin erabiltzen denean, bateragarritasun arazoak izan ditzake.

genius 404

Deskripzioa

Save your visitors from unhelpful 404 errors!

Instead of quickly giving up when a visitor reaches content that doesn’t exist, make an effort to guess what they were
after in the first place. This plugin will perform a search of your posts, pages, tags and categories, using keywords from the requested
URL. If there’s a match, redirect to that content instead of showing the error. If there’s more than one match, the
404 template can use some template tags to provide a list of suggestions to the visitor.

Template tags

genius404_has_suggestions

Returns true if there are some suggestions, false otherwise

genius404_get_suggestions

Retrieve an array of post objects for rendering manually.

genius404_suggestions

Draw a list of suggested posts.

Pass the parameter “list” to render suggestions as a list.

genius404_loop

Query posts for use in a Loop. Eg:

<?php genius404_loop(); ?>
<?php while (have_posts()) : the_post(); ?>
    <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
    <?php the_excerpt(); ?>
<?php endwhile; ?>

Note that the loop will not display pages correctly, as it is not built to support them. It is recommended that if you use
a loop like that above, do not enable searching of pages.

genius404_get_search_terms

Retrieve an array of search terms used to populate the suggestions list, for use with contextual highlighting, etc.

Instalazioa

  1. Unzip the package, and upload genius404 to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Place <?php genius404_suggestions() ?> in your 404 template to list suggested posts, or see ‘Template tags’ for more information.

Berrikuspenak

2016(e)ko irailaren 3(a) 1 reply
I went ahead and enabled the plugin as I did not want to write rewrite rules for all my removed posts. Luckily it worked for one of the more important posts I had. But for the other 3/4 of my posts, it did not work. Took me to the 404 page I was trying to avoid. I would recommend something I feel is a simple task, for such a plugin: if it doesn't not have any similar matches under the categories, posts, or pages, to run a search based off the URI simply running like: mydomain.com/?s=<uri> Just an idea I feel can make a huge improvement where the plugin lacks and make it a more widely used plugin.
Irakurri berrikuspen bakarra

Laguntzaileak eta Garatzaileak

“genius 404” software librea da. Ondoko pertsonek egin dizkiote ekarpenak plugin honi.

Laguntzaileak

Itzul zaitez genius 404 zure hizkuntzara.

Garapena interesatzen zaizu?

Araka kodea, begiratu SVN biltegia edo harpidetu garapen erregistrora RSS bidez.