Custom rewrite url category
Custom rewrite url category
Custom rewrite url category
I guess you want to check if the active page is a) of your custom post type and b) one of the ancestors is your parameter. First of all, i would advise you to keep on using the ID, as slugs and titles can be non-unique, so one slug could be different posts. Second, you … Read more
Rewrite URLs – Custom Post Type – Post Slug, Taxonamy Slug
Permalink for a custom post type isn’t working and I don’t know why
Remove the parent slug in a CPT URL
php script to change slug in post automatically
Adding Post id to the end of slug in a Custom Post Type
By default WordPress sets the length of that field to 200 when the database tables are created. Now you could change that by running this SQL command in your console (change the tabe prefix to your setting, and make a backup first): ALTER TABLE wp_terms MODIFY COLUMN slug VARCHAR(1000); But … the nice name, the … Read more
Allow Chinese character on post URL slug
⚠️ Temporary workaround https://stackoverflow.com/a/59109698/15497563 sudo apt-get install nginx-extras nginx.conf https://stackoverflow.com/a/11170826/15497563 http { # Include the perl module perl_modules perl/lib; # Define this function perl_set $uri_uppercase ‘sub { my $r = shift; my $uri = $r->uri; $uri = uc($uri); return $uri; }’; } site-enabled https://stackoverflow.com/a/35369570/15497563 server { location ~ ^/(부모/자식a|부모/자식b|부모/자식c)(.*) { rewrite ^(.*)$ $scheme://$host$uri_uppercase; } } … Read more