Non-existant URL redirects to existant one

If with “update of the permalinks” you mean updating the post’s slug: WordPress uses a function called wp_old_slug_redirect() to find out if you’re looking for a post whose slug was recently changed and redirect you to its new home.

Can wordpress post and sidebar remain visible after scroll?

Sounds like a fixed position and 100% height are what you’re after: position: fixed; height: 100%; The TwentyFifteen theme uses the following code in style.css: @media screen and (min-width: 59.6875em) { body:before { display: block; height: 100%; min-height: 100%; position: fixed; top: 0; left: 0; width: 29.4118%; } .sidebar { float: left; margin-right: -100%; max-width: … Read more

Automatically add custom fields value to wordpress post

I think update_post_meta( $post_id, ‘HD’, $mydata ); has its arguments in the wrong order and should be update_post_meta( $post_id, ‘quality’, ‘HD’); Alternatively where you need the custom field and it does not exist, why not just use “HD” as a default value? e.g. global $post; $theQuality = empty(get_post_meta( $post->ID, ‘quality’) ? ‘HD’ : get_post_meta( $post->ID, … Read more