Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

neon22 on "redirect_guess_404_permalink and custom types"

$
0
0

I have a new wordpress version of an old site. The old site had permalinks structure of:
website/artist_name
The new site uses:
website/portfolio/artist_name

The new site uses the "Options Framework" plugin and "Portfolio Posts" plugin to create a new type of Post called a Portfolio.

I want to redirect the old permalink structure to the new one. Its not easily done with simple rewrite rules but the Redirect plugin might work but needs constant maintaining.

The internal function redirect_guess_404_permalink is designed to solve exactly this problem but only for Posts.
FYI - Its in canononical.php under wp-includes.

So two things:
1. Can anyone help me in modifying this function so it works for custom types.
2. Would it be a good idea for this to be a feature request for a later version of Wordpress ?


Viewing all articles
Browse latest Browse all 8245

Trending Articles