Permalink not changing according to post type

Permalink structure for blog posts and pages are managed in WordPress Settings -> Permalinks page, so to make blog posts have permalinks like blog/%postname%/ and you’ve done it right. The tricky part is about Custom Post type permalinks declaration: in your CPT arguments declaration there’s a rewrite rule parameters, which in turn has with_front – … Read more

Why my URL has an unknown character string?

Thanks for the reply, problem solved ! It was in the Woocommerce general settings “Default customer address”. Had it set up on “geolocalize users with cache support”. Just changed it and v=hash disappeared.

SSL not working fine, Home url not matching with site url wordpress errors

There are two ways of seeting the Site URL. In the dashboard. In the wp-config.php file. In the functions.php file. If you cannot change Option 1 above, then you should NOT edit the table in PhpMyAdmin. Check for the following in wp-config.php: define( ‘WP_HOME’, ‘http://example.com’ ); define( ‘WP_SITEURL’, ‘http://example.com’ ); If you can’t find that, … Read more

How to generate expiring URL of the page?

This plugin fits most of the requirements that you need: https://wordpress.org/plugins/public-post-preview/ It allows you to share a preview of the page to anyone with the link. You can modify the expiry time with a filter. add_filter( ‘ppp_nonce_life’, ‘my_nonce_life’ ); function my_nonce_life() { return 60 * 60 * 24 * 1; // 1 day }

Deleting /wp from my website URL

You used subdirectory /wp to install your wordpress installation. To change the installation location you would need to export your database , search and replace all text string “http:s//Makai.pl/wp” replace with “https://Makai.pl”, afterwards , move all files in /wp directory one level up , which should be /public_html or /www directory. After those steps are … Read more

How to rename a wordpress site from http://myserver.example.com/blog to http://myserver.example.com/somethingelse or just http://myserver.example.com

Those instructions are a little odd to my eye. I think you’re being forced to use /blog because of Step 3 in the instructions. The Apache directive Alias /blog /usr/share/wordpress …directs Apache to route any requests to /blog to the directory where you’ve installed WordPress. (See Apache’s docs on the Alias directive.) I don’t know … Read more