One of my posts is displayed as page

It seems that http://www.regensburgerturmtheater.de/loriotabend/ page is an attachment view page. I recommend you just change the name of this http://www.regensburgerturmtheater.de/wp-content/uploads/Loriotabend.jpg photo to different (in admin panel).

Losing the original URL when using add_rewrite_rule

wow, after more banging of my head against the wall, it took this: add_rewrite_rule(‘work/all/([^/]*)/([^/]*)/?’, ‘index.php?post_type=project&name=$matches[2]&mode=all’, ‘top’); Two things actually, I had to include a post_type=project part as well as change pagename to name. If I remove either one, I get my previous results. I am not sure why this set of values works when other … Read more

Update permalinks

You can try switching to basic permalink structure (the one with post id format) and then again choose custom permalink. Or you can use following plugin to write desired URL for each page Custom Permalink Plugin

Editing the variables in a custom URL

IMHO easiest way to do the trick is use a simple rewrite rule, and demand the logic to the page, e.g. function my_custom_url() { add_rewrite_rule(‘story/([^/]+)/?’,’index.php?pagename=story&user=$matches[1]’,’top’); } add_action( ‘init’, ‘my_custom_url’ ); After that in page where you need the user id use: $userqv = get_query_var(‘user’); $user = is_numerical( $userqv ) ? $userqv : get_user_id( $userqv ); … Read more