• russw

    (@russw)


    Let say I have an author, I want to display current 5 posts by author on the authors created page? is this possible?

    I cant seem to figure it out.

Viewing 5 replies - 1 through 5 (of 5 total)
  • aleister

    (@aleister)

    It is very possible.

    One way would be a plugin that looks at the current page slug, and if it matches one of the authors, it would pull the last 5 posts by that author from the database and display them.

    That would assume that the author’s pages are in the following format:

    http://yoursite/author-name/

    Where the author-name (with the dash extracted) matches the name of the author, etc..

    Would that method work for you? If not, can you show me your page so I can see the structure?

    I will see about writing up a plugin for this. I have been trying to think of a new one to do. It should be pretty simple.

    aleister

    (@aleister)

    Or instead did you mean that every post the author creates should list the last 5 posts that author did? 🙂

    aleister

    (@aleister)

    Thread Starter russw

    (@russw)

    im sorry but yes the page would be http://yoursite/author-name/
    then in the article , i eould write about authot then ad some php code
    below to show his latest 5 posts.

    I will look at your plugin

    aleister

    (@aleister)

    Blah.. that is completely different then 😉 lol

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Post By Author’ is closed to new replies.