.HTML POST extension for custom post type – DRAFT – PREVIEW

Here is a simple solution, if post have DRAFT status – we show a “normal” do not rewrited “URL”. add_filter( ‘post_type_link’, ‘custom_post_permalink’ ); // for cpt post_type_link (rather than post_link) function custom_post_permalink ( $post_link ) { global $post; $type = get_post_type( $post->ID ); $post_status = get_post_status( $post->ID ); //get POST STATUS if($post_status != “draft”) { … Read more

Remove trailing /feed from permalinks that use a .html suffix

You can achieve this by adding the code to .htaccess file of your apache server. RewriteEngine On RewriteCond %{REQUEST_URI} ^/([0-9]{4})/([0-9]{2})/([^/]+)\.html/feed/?$ [NC] RewriteRule ^ /%1/%2/%3.html [R=301,L] The given code will helps you in set up a redirect so that any request to a post URL with /feed appended will be redirected to the original post URL … Read more

techhipbettruvabetnorabahisbahis forumutaraftarium24eduedusedueduedusedueduedusedusedus