Is it possible to use % sign in post permalinks?

Just answering to close out the question, but if anyone has other opinions please chime in. No, it’s not possible to use % signs in post permalinks without some very hackish workarounds. It’s also not advisable given they are used in URLs as special characters. That said, the lack of % symbols in the permalink … Read more

Add a product attribute to permalink in WooCommerce

You can do like this, to append QUERY to permalinks (not base url): add_filter( ‘post_type_link’, ‘my_append_query_string’, 10, 4 ); function my_append_query_string( $permalink, $post, $leavename, $sample ) { if ( $post->post_type == ‘shop’ ) { if (get_option(‘permalink_structure’)){ $permalink = AddStringToUrl($permalink,’color=red’); } } return $permalink; } function AddStringToUrl($current_url, $string) { return $current_url . ( stripos($current_url, ‘?’) === … Read more

Permalink Options does not change

Make sure your Apache web server have mod_rewrite. Create .htaccess on your wordpress root directory with following content (or add these to existing .htaccess file): # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress