I created one page for posts and changed the default post page to that page in Settings > Reading. When registering for the site the default new user role is subscriber.
The problem is after the login when I click on my diaryview
page it shows all the posts of other users but I want to see only my posts in my diaryview
post page.
How can I see only my posts on this page?
Try using wp_query
Here is the codex link:
WP_Query – Docs – WordPress
Here is an example of something that may help:
You could use this in you own template page to display only the current user’s posts.
This worked for me. Comment out the post_priority