WordPress Blog Slug Issue - wordpress

Recently I have made a website and since then I am trying to post my new posts on my blog page but it's not showing there.
I have updated settings also where I have made my blog page as a post page.
Whenever I am trying to go to my blog page from my website it is showing index/blog/
And parent directory underneath that.
If anyone can help me in this I would be more than happy.

Check if the Permalink is set to Post Name. If not try to set Post Name as Permalink from Settings > Permalink. (https://i.imgur.com/jJZ9wJo.png)

Related

How to fix permalink structure in WordPress for the upcoming events and photo gallery?

We are using a calendar plugin to display upcoming events for a WordPress website.
The individual event page has the default URL structure as https://www.example.com/event/event-name-1/
Following are the settings on our client's website:
The blog page is this: https://www.example.com/blog-page/
The permalink structure is: https://www.example.com/blog-page//%category%/%postname%/
The event page also follows this permalink structure so the events URLs are: https://www.example.com/blog-page/event/event-name-1/
I want these URLs should be https://www.example.com/event/event-name-1/ (meaning, event pages shouldn't list under blog-page)
I tried following:
Setup the custom structure as /%category%/%postname%/ and added
category base: /blog-page/
This fixed issue with the event's URLs; but then it breaks the permalink structure for the blog posts.
I am getting the same issue with the photo-gallery as well.
How to fix this? Is there any plugin available?
I found a fix to this issue.
It is related to WordPress Custom Post Type and this article on WPBeginner helps to fix it.

Wordpress: How to change the clean URL of posts under a parent page?

I managed to create a page for all my posts and it works ok. But I want to change the clean URL of my posts. How can I change that via the wp admin area? or do I have to fiddle with the code?
For instance,
http://wordpress-4.com/hello-world/
to
http://wordpress-4.com/blog/hello-world/
I have a page called Blog and its url is,
http://wordpress-4.com/blog/
So I need to have blog/ in front of all my posts.
Any ideas?
Go to Settings -> Permalinks in the WordPress admin.
Under custom enter into the field blog/%postname%/.

Assign a parent page to all WordPress posts

I am building the actual Website as well as the blog into a single WordPress theme. I've got everything setup, there is a blog page (www.mysite.com/blog/) which is set as the "Posts Page" and all the posts are displayed on this page as excerpts.
However, each post has the following URL: www.mysite.com/post1/, I need all post to have the blog page as their parent, so that their URLs will change to: www.mysite.com/blog/post1/.
How can this be done?
Thanks in advance
Willem
You can do this easily by changing your permalink structure. Just include /blog/ at the start of your custom structure.
It seems to only affect posts and not pages, which is what you want.

Custom Post Types and Template Hierarchy

On the following dev site, I set up a custom post type for "Articles". The post type name is "zu_articles" and the slug is "articles". Everything is working in the Dashboard and I'm able to generate a listing of articles. But when you click the article link, it goes to a 404. I have the following page created: single-zu_articles.php based on my understanding of the WP template hierarchy. I also have single-aricles.php if it is based on the slug and that doesn't work either.
http://zimmernutrition.com.s137737.gridserver.com/
There is a "Latest Article" widget under the content slider on the right to see everything.
What am I doing wrong?
Thanks
Brett
Okay, you're not going to believe this...did some more hunting on StackOverflow and found this post:
Wordpress -- permalink with custom post types
All I had to do was resave my f'n existing permalinks in the Dashboard.
Thanks for staying with me. With I understood why this had to be done and why it fixed it.

How to Change the permalink of new posts while keeping the existing permalink for existing posts in wordpress

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.

Resources