In my site I have a custom post type advice and custom taxonomy advice-cat and all post in advice display in advice page I use next and prev link to limit post, display in every page, I limit it to display 5 post only in every page. It's working until I change the permalink into Custom Structure something like this /%category%/%post_id%, then when I click the next link to navigate the next page, it display page not found and then I try to change the permalink like this /post/%post_id%, the next page now back to work. and I try another structure like this /%author%/%post_id%`, the next page again not working.
anyone have and idea why if i use a permalink to be dynamic when I click the next link to navigate the next page, and error occur page not found.
First set permalink to post type. You can replace page.php file. It will help you to set permalinks again.
Related
I created a category in WordPress and I gave to this category the url of my blog page. It gave me a 404 error so i deleted the category. The problem is that now my blog page redirect to my homepage.
I don't know how to start . Any idea of what to do ?
You can start by ensuring the blog page is different from the homepage in dashboard->settings->reading
In your admin dashboard, go to Settings > Permalinks and make note of the current setting since you need to temporarily change it. Select the Plain radio button and click Save Changes at the bottom of the page.
Once saved, click the previous pretty permalink option you had and click Save Changes one more time.
Your permalink settings have been reset and you can check your blog page. You shouldn’t see any more 404 errors. Please check the blog page in other browser to prevent also the cache.
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 have modified 2017 WordPress theme to suit my needs. I have replaced the default post type with my own "blog_post" type. Everything works fine until I try to insert media image (through post editing GUI) into the post. I want the user to be redirected to the attachment page if he click on the image thus I select "link to: attachment page". The problem is that inserted URL is wrong.
The inserted url has following structure: http://mydomain/image_name/, if I click on the image it says page not found. If I submit post and then edit it, it now says that the image links to the custom URL. If I check the attachment page from drop down URL gets fixed to the correct one: http://mydomain/blog_post/2017/post_name/image_name/
I have custom permalink structured as: /%year%/%postname%/
How can I fix the link inserted in the first place to be in correct format? It is really tedious to edit all images on each posted post just to fix wrong urls.
You need to reset permalink structured, it'll work for you
I have converted my html/css to wordpress by following a very simple guide.
On my WP-site, I would like to have a simple "blog-page", a page where i can update the visitors about events and so on. I created a page called events but how do I make my posts appear on this particular page?
When i create a new post I can click "view post" to see it but i does not show i on my events-page. In fact, I have no idea where it ends up? Its like creating a new page except for that it does not add to the menu?
Select Settings, Reading.
Choose 'Front page displays a static page' and select the page you want as your front page.
On the next line 'posts page' select the page you named 'Events'.
That should do the trick.
"how do I make my posts appear on this particular page"
For this you have to create a custom template for your blog section, and select that template during page creation(events) for particular page. That's it.
Follow this link to know how to implement it. http://www.expand2web.com/blog/custom-page-template-wordpress/
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