WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. ashishjain
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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

Tags

No tags yet.