I am working on a Wordpress application. I have created a custom page for articles landing page. The permalink for articles is working fine but I have problems when I click on a category name. For example: If I click on "jobs" category the URL looks like http://www.mysite.com/category/articles/jobs/. I want it to look like http://www.mysite.com/jobs/.
I am not sure if this is something I did that is causing this or just default wordpress behaviour. So, any ideas/suggestion how I can fix this?
Thanks.
I think your solution is either in this plugin or in its source code:
http://wordpress.org/plugins/wp-no-category-base/
It will work as long as you don't use the same slug for a page and a category (because they will in this case have the same permalink).
Related
I'm not quite sure if this is the right place for me to ask this question but I'm really stuck with this problem.
As the title said I have a wordpress using elementor page builder but I can't achieve the right slug or url that I want. I want to achieve this:
[Site-url].com/blog > [Site-url.com/blog/article-title
but my current url always give me this:
[Site-url].com/blog > [Site-url]com/article-title
I already tried to change the static page and assign my blog page as blog list but whenever I try to assign it, the design that I make in elementor won't display instead only a normal blog list without template that show.
I read from the documentation but it give a design to achieve and I already tried that it still not solve my slug problem. in my permalink I use [Site-url]com/%postname% but I can't assign my blog pages. can someone help me to solve this problem?
It's simple go to wp-admin => Settings => Permalink and set URL structure like this
/blog/%postname%/
See the image ==>
https://nimb.ws/kX0qTe
I have a WordPress site where my front page is showing the latest posts.
If I have my permalinks set as plain showing...
https://example.com/paged?=2
The page loads. However, If I change the permalinks to Post name, giving me...
https://example.com/page/2/
That results in a 404.
.htaccess seems to be set up correctly. The first page has posts and the links are being generated in the pagination controls. Using Post name as the permalink setting my posts are properly linked...
https://example.com/my-wordpress-post
But https://example.com/page/2/ does not work.
Any ideas? I really need to set the permalinks to Post name. Could it be a server issue?
First thing I would recommend is to confirm your .htaccess file is set up correctly to process permalinks. If you create a new page, can you access that page with his human-friendly permalink, for example? If not, you may need to fix your .htaccess file to handle those rewrites properly.
Otherwise, can you provide more context for this issue? Is it safe to assume you have your homepage set up with a list of paginated posts?
I figured this out. Instead of selecting Post Name, I select the Custom Structure radio button instead and manually added /%postname%/ and then clicked saved.
Then it worked. :)
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.
I have a clean installation of latest Wordpress version on my local webserver.
Twenty Twelve Theme by default and WP-Pagenavi plugin installed for Numeric pagination.
I set permalinks for my categories and postslike this:
http://wordpress352ru/%category%/%postname%/
Now I can access category "shows" archive with link http://wordpress352ru/shows/
Pagination links on that page now look like:
http://wordpress352ru/shows/page/2/ and it doesn't work.
If I open index page and then click on category shows link then pagination links on shows category page look like this:
http://wordpress352ru/category/shows/page/2/ and it works.
But I'd like to pagination links would look like this instead and worked:
http://wordpress352ru/shows/page/2/
Without word "category" in the link. How can I set this to work? Thanks in advance!
There are plugins out there for this, but here is one very easy way of doing it: http://www.wprecipes.com/how-to-remove-category-from-your-wordpress-url
EDIT
Once you've done the above, your pagination should work just fine.
My wordpress site is acting weird. The problem is like this:
The page www.mysite.com/about-us is not showing, but showing the homepage content.
Also when you type some not exiting pages like www.mysite.com/abcdef also show the homepage, not a 404 error.
(I am using the link structure /%category%/%postname%.html. and a plugin called no parent categories which removes the parent categories from the link.)
I tried to set the link structure to default and disable the plugin, still no use.
can anybody kindly help?