Prepend meta_value to permalink of post

In this case it seems like you’ll want to hook into the WordPress rewrite rules.

{$permastruct}_rewrite_rules doesn’t have a lot of information, but this filter would allow you modify the array of existing rewrite rules to add in your new rewrite rule for series.

For this to work:

http://example.com/series/movie_slug/parrent_series_slug/series_slug

You’ll need to add in movie_slug, parrent_series_slug, and series_slug as vars that WordPress will recognize with the query_vars filter.

More information on WP_Rewrite with some examples

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)