how to set custom permalink in wordpress - wordpress

I am trying to change the permalinks of WordPress website. Because I want to create multi country website without creating sub-domains. For now I am having link like :
https://example.com/
https://example.com/categroy/post-link
But I want to do like:
https://example.com/country-code/
https://example.com/country-code/category/post-link
I've tried many google searches but no one have the solutions. Please let me know if this is possible. Small help can make this work.
Regards

Related

Wordpress multilanguage URL

I'm building my own theme in WordPress, and the website will be in multiple languages.
All I need is to find a way to assign a language to each page, and this language should be added to the URL as well. (I'm guessing adding a taxonomy, but I'm not sure how to add this to the URL)
I will create a different template page per individual page. Most plugins try to translate each page, this I don't need.
Lastly, of course, I will create a separate menu per language, but these links should link to the correct page URL (with the ../language/..)?
Is there a way/ plugin that can help me do this?
Thanks a lot to all who can help me with this!

Manually add /language/ to all Wordpress URLs

I am trying to turn a single language WP website into a multi language site, without using a plugin.
In practice I would like to manually add the language code to the page URL:
domain.com/company/ should become domain.com/en/company/
That should be applied to posts, pages, products and custom post types URLs.
So far I have tried some solutions, found here and elsewhere, without success.
Could anyone give me some hints, please?
Thank you, Paola

Change /product-category/category/name to /product-category/name

My product category urls currently look like: /product-category/category/category-name
Where the category-name is the only changing part. I would like to change /product-category/category to just /product-category, so my final url would look like: /product-category/category-name
Most of my google searches have yielded results relating to removing /product-category but I haven't found anyone talking about having this redundant extra /category in the url.
Any help is much appreciated.
You can solve this right in Wordpress. When you install woocommerce, a new setting shows up in you permalinks settings. In your wordpress dashboard, go to Settings > Permalinks. Then when you scroll down beneath your regular wordpress permalink settings you will see one for woocommerce. There you can choose what you want to actually display.
Hope this helps out.
Update after comment
Ah I see, I read to fast. I would think you would have to do a rewrite to the core wordpress function for categories. Probably a decent amount of work in creating your own plugin to do it. Looks like this plugin does a good job of it but I haven't used it. Let me know if it works.
http://wordpress.org/plugins/no-category-base-wpml/
Let me know if it works

Permalink Linking Issues (Wordpress)

My current blog is www.bostonsbettah.com and my current permalink set-up is http://www.bostonsbettah.com/%category%/%postname%/
Now, in a perfect world, the a post should appear as something like www.bostonsbettah.com/bostonbruins/boston-bruins-1st-line-playing-like-a-1st-line/ and that should take you to the post. When I click on the page title at the top such as "Bruins Blog", it should take me to www.bostonsbettah.com/bostonbruins/ that has an archive of all posts categorized as "Bruins". Currently, however, every page besides the home page is a 404 error.
Now I know I can fix something in the .htaccess file and I know how to access it, but I don't want to mess with it as I don't know how to code. Is there a fix someone can provide that will allow me to fix my website? Thank you in advance.
Never,ever,ever put your blog URL inside custom permalink structure!. You must use one of the structure tags, or a combination of tags only.
Read the documentation first.

Wordpress strange permalinks

maybe anybody know why wordpress generate link like this: portfolio/all/#.UHSbFy5mJIk
I make bold the permalink strange place
I have no changes in wordpress core
I'm going to assume you have a sharing plugin enabled that is appending the extra stuff to your URL. This is tracking data to let you know how your links are being shared.

Resources