Skip Navigation

[Resolved] List other posts by the same author of current post

This thread is resolved. Here is a description of the problem and solution.

Problem:
How to display list of related posts in sidebar

Solution:
You can use view's widget to display the list of posts in sidebar.

You can find proposed solution, in this case, with the following reply:
https://toolset.com/forums/topic/list-other-posts-by-the-same-author-of-current-post/#post-866218

Relevant Documentation:

This support ticket is created 6 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by WillL606 6 years, 8 months ago.

Assisted by: Minesh.

Author
Posts
#851567

Tell us what you are trying to do?
I have a many-to-many relationship set up between a Custom Post (Essay) and its Author (a custom field of the post). A link on the Author of a post takes you to the authors page with a list of essays by that author. This works. But I would like to have a sidebar widget with a View showing other posts or essays by the same author of the current post displayed. I tried making a View that filters the author-essay relationship, but this would only show the author of the displayed essay, not the list of other essays. I tried the Loop Wizard in this View to display another View of an essay list, but this doesn't work.

Is there any documentation that you are following?
Looking at documentation on Relationships, but what I need is a relationship of a relationship. In other words, I need the sidebar widget to display the an essay/author/essay relationship. Is there an easier way?

Is there a similar example that we can see?

What is the link to your site? hidden link

#857153

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - As I understand, you want to display the sidebar widget with view's and that view should show all the other posts that belongs to author of currently displayed post?

If yes - this is possible. Could you please share problem URL where you want to display the Essay that belongs to author of currently displayed post. Please setup a test case example and expected result so I can give you solution you are looking for.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).

I have set the next reply to private which means only you and I have access to it.

#866218

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Could you please check now.

1)
I've created this view and added it with view's widget in sidebar:
=> hidden link
- For this view, I've set the content to display "Author" post and filter by post relationship with related post

2)
Inside the above view's loop output section, I've added another view as given under:
=> hidden link
- For this view, I've set the content to display "Essay" posts and filter by post relationship with view's shortcode attribute that is passed as and added following view to parent view of "Author" as described in #1.

  [wpv-view name="display-author-related-essay-widget" wpvrelatedto="[wpv-post-id]"]

I can see not it displays the 5 posts as you required. Could you please confirm.

#870392

Thanks for your help. Makes sense how you applied the Views for sidebar listings.
best,
Will