how to show only user own post in a specific page.... (3 posts)

  1. ashishjain
    Posted 3 years ago #

    I created the one page for posts and change the default post page to that page from go to settings-reading. then

    register for a site and the default new user role is subscriber.

    and the problem is after the login when i clicked on my diaryview page that show all the posts of other users but i want to see only my posts in my diaryview post page.

    pls suggest me what can i do to see only user own post on my diaryview page.........i m waiting for ur reply

  2. s_ha_dum
    Posted 3 years ago #

    Use get_currentuserinfo() to get the user ID, then use get_posts() with the author parameter to pull only the posts for that user.

    Although, what you are creating is pretty much an author page/template.

  3. ashishjain
    Posted 3 years ago #

    thanks for reply in this post...

    but i m a beginner in wordpress pls help me how to use these get_currentuserinfo() ang get_posts() method and where i put these methods
    to get my output please help me again

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.