1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Wordpress Question. I need some advice on how to add links in a users profile page.

Discussion in 'Content Management' started by webseo, May 20, 2015.

  1. #1
    Hi all,
    I am working on a website were i need to have links to posts or pages a user has added to the website. For example, user one can login to the backend of the website and they will automatically go to their profile page. Then in the profile page, they can see what posts and pages they have added themselves. I want them then to have the ability to be able to edit their own posts or pages.

    I know how to add extra fields in the profile page, but I am not sure on how to add links to their own posts and page, which will take them to the editor. Can someone point me in the right directions?

    Thanks in advance

    Steve
     
    webseo, May 20, 2015 IP
  2. billzo

    billzo Well-Known Member

    Messages:
    961
    Likes Received:
    278
    Best Answers:
    15
    Trophy Points:
    113
    #2
    Does this seem like what you want to do:

    http://www.wpbeginner.com/wp-tutorials/how-to-display-related-posts-by-same-author-in-wordpress/
    https://codex.wordpress.org/Template_Tags/get_posts

    You could edit the author-bio.php template and include a list of their posts. (See above.) Then perhaps next to it or under it you could display an edit link with the edit_post_link() function?

    http://codex.wordpress.org/Function_Reference/edit_post_link

    Having a user redirected upon logging in is something I have no idea how to do or even if it is possible.
     
    billzo, May 20, 2015 IP
    webseo likes this.
  3. webseo

    webseo Well-Known Member

    Messages:
    190
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    120
    #3
    Thankyou so much billzo, that is exactly what I am after. You are a champ!

    Steve
     
    webseo, May 20, 2015 IP