I am trying to set permalinks as:
domain.com/category_name
domain.com/postname
And I can't find a way to make this work.
On screenshot down below you have my settings of permalinks, thats the set-up I want, but I am getting an 404 on category pages.
I tried to reset clear htaccess and flushed permalinks to recreate it. (its writable)
I tried to put "." as category base.
Nothing helps.
If I set in settings custom structure : /%category%/%postname%/, and I set category base to ".". That works, but I get post pages under category and I dont want my post page URL to have a category in it.
Anything is helpful! :) Thank you
Okay, I found some solution if someone needs it in future:
I left my settings in permalink as
Custom structure: /%category%/%postname%/
Category base: .
And I installed plugin: "Permalink Manager Lite" and used it to manually remove category from the URL of each posts.
Related
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. :)
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).
I am new to wordpress so trying to figure out something which I cannot and asking you guys. Please help if you know.
I have issues with URL formation in Wordpress. I want to show articles' category name in URL, so I am using Permlinks -> custom structure which is like /%category%/%postname%.htm I then pasted code given by WP in .htaccess file. So now articles use http://mysite/category1/article1.htm URL.
But then on index.php any links inside article shows URL ashttp://mysite/article2.htm and hence 404. I am using >Article2 inside a post. If I open http://mysite/category1/article1.htm then above link will show as http://mysite/category2/article2.htm which is the correct URL.
Can someone plese help me figure out correct way? Using above configuration, it works fine for all links when open individual posts but only main index.php does not include category name. Just to note, URLs in Recent Posts also show correct URL.
If the links are hardcoded inside the article itself, there's nothing inside WordPress PHP or settings to change. You just need to edit the post content and update the HTML link URLs using the new permalink structure, within Posts and/or Pages tab.
You can also try a plugin like Redirection which will redirect old post permalinks to the new (correct) permalink format.
http://wordpress.org/plugins/redirection/
I want to change the permalink of new posts while keeping the existing permalink for all old posts for a wordpress based blog in order to retain the backlink power and social sharing score. I have searched the whole wordpress plugin directory and found only one plugin called Advanced Permalinks. I tried this plugin but couldn't get the required resutls. It gives 404 error for all previous posts.
Could you any body help me in this regard?
you must set default setting at the beginning and put page id and post id like ?page_id or ?p on the page or post then change the permalink option from setting. Wordpress change permalink at run time from default setting.
I have a wordpress multi-site:
site1.local.loc [with subdomains on my local] and I would like to have three pages on this.
site1.local.loc/works - (posts page, but I want 'Works' as my title)
site1.local.loc/about - (static page)
site1.local.loc/contact - (static page)
Since 'Works' is my posts page where I keep putting in content, I changed my permalinks for this site to:
/works/%postname%/
However, when clicking on 'view post' at the end of posting anything, it leads me to a '404' page which means there is a disconnect. This is also the case for viewing any page. Is my .htaccess file faulty?
How do I solve this? Also how do I make all my posts appear in my 'Works' page (as in, how to make that page the posts page?)
Thanks!
Updated: I've found out that I get a 404 for any page that I create for a site in a wordpress network.
You do not have to touch .htaccess file.
Make a custom post type that is called works. All those posts made in that custom post type will have that url that you desire. There is no other way to do it. (even if there is, it must be dirty) That is celanest way, and since wp does it by itself you can expect that nothing will go wrong wnen you update, install plugins, etc.
Create a category called "Works" that would then show all posts added to that category by simply going to /works/ all posts would then be shown as /works/post-name/.
You will need to change the permalink structure to /%category%/%postname%/
Check this in administration
Settings > Permalinks > Post name