WordPress.org

Forums

Latest Posts by Author
Thanks and a question (4 posts)

  1. steeleweed
    Member
    Posted 1 year ago #

    Thanks - this lets me highlight my author-of-the-week on a mutli-author blog.

    Is there a way I could set up a search form and pass the argument to the shortcode so that users could search for posts by specific authors?

  2. Alex Mansfield
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks steeleweed! I'm glad you found this plugin useful.

    I don't think you would actually need this plugin to search for posts by specific authors. If I understand correctly, WordPress automatically creates author archives. You would just need to create the search form and then use the form input to redirect to that author's archive. By default, the author archive URL looks something like this:

    http://www.yourdomain/?author=1

    The 1 at the end of the URL should be the author ID. I'm not sure if that's quite what you're looking for or not, but hopefully it points you in the right direction.

  3. steeleweed
    Member
    Posted 1 year ago #

    Your plugin does exactly what I want. My only suggestion is you might add target="_blank" to the links (optionally?)
    There's also an issue if the Username name is not the same as the DisplayName which visitors see, but there's nhot much you can do about that.

    Problem with FP default is users don't know an author's ID, only his/her name. A generic WP search on author name returns not a list of posts, but all posts by the author or where the author commented or when someone referred to the author.

    The problem I'm having is not with your plugin but with the plugin that lets me run PHP in a page: Exec-PHP works but prevents Editors from editing posts by Admins, since in theory, an Admin could include PHP and Editors would be able to to change/insert PHP, a big No No.

    Right now I mirror the site (on a monthly basis) for both backup purposes and to have a way to test changes before taking them 'live'. I may set my action= to a page on the mirror site, where the editing issue does not arise.

    Thanks - and keep up the good work.
    Have a great New Year.

  4. Alex Mansfield
    Member
    Plugin Author

    Posted 1 year ago #

    1. I didn't add target="_blank" because it is usually considered best practice to let the user decide whether or not to open a new tab/window, rather than forcing a new tab/window to open. However, feel free to modify the plugin to add a target if you'd like.

    2. I may have misunderstood your question about author search. I thought you were using a custom form for searching for authors. Using the default search form but replacing the default search results will be a bit more complicated.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Latest Posts by Author
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.