Skip Navigation

[Resolved] Create slider post filtering by authors with plugin co authors plus

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 7 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 12 replies, has 2 voices.

Last updated by Noman 7 years, 4 months ago.

Assisted by: Noman.

Author
Posts
#546053

Hello i'm trying to create a slider post views filtering by authors

i use this option "Author's username is set by the View shortcode attribute: author" but when i use the shortcode and put the name of the author, he says me no items found. i think there a problem with the plugin co authors plus byt i don't know why

#546074

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Simon,

Thank you for contacting Toolset support. Yes, it seems like you need to add some shortcodefor Co-Authors plugin to work with Toolset. We have another client who had the similar issue and was also able to solve it: https://toolset.com/forums/topic/co-authors-plus-displaying-fields/#post-221404

Thank you

#546083

No it's not that i want to filtering post by authors but when i use [wpv-view name="xxx" author="xxx"] he found no items als the auhor has post and i think it's because there are many authors by post

#546120

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello Simon,

To further debug this issue, I need to request temporary access (WP-Admin and FTP Login info) to your site. Your next answer will be private which means only you and I have access to it.

=== Please backup your database and website ===

✙ I would additionally need your permission to de-activate and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important.

✙ Please add the Link to the [View] Edit Screen and [Page] Edit Screen where you have inserted this view.

Thank you

#546205

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello Simon,

I have thoroughly checked your site and found that the problem is with Co-Authors plus plugin. I have disabled the Co Authors Plus plugin and created a test View, you can check here that it is working as expected:
hidden link

I will install Co-Authors Plus plugin at my local site to further check this issue and will get back to you soon with an update.

Thank you for your patience.

#546218

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

I have checked the Co Authors Plus plugin at my local site and it is working perfectly fine.

I have re-activated the Co Authors Plus plugin on your site and re-added the Query filters in your view and now it is working fine, please check here:
hidden link

Thank you

#546261

Yes it's works only if the author is put in first-one. if a create a post with 2 authors and i put Bruno Lebrun in the second place, he doesn't appear in the loop. I would like to have all posts where an authors is selected

#546792

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Okay Simon,

I will again check the issue with two authors selected for one post, and will let you know how it goes.

Thank you for your patience.

#546850

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

I have checked it and you are correct that post is not found if the author is other than “Bruno Lebrun”. This even occurs when we are not using Co-Authors plugin, but all in all its logical thing here as we are passing one author name through the View’s shortcode attribute:

[wpv-view name="author-test-view" author="blebrun"]

- View runs and try to find if the post is assigned to author="blebrun" >> it shows result.
- And if View finds a post that is not assigned to author "blebrun" >> it shows no results and hence the 2nd author checking is not performed as the results are already provided “none” to the View.

This is why when we move author="blebrun" in first place it works and when we move it second place it does not work. This is also true when we are not using plugin and we select only one author for a post. So this is logical limit and due to the shortcode attribute we are passing specifically (author="blebrun").

I hope this explains the thing here. Thank you

#546853

And are there any solution for fix that?

#546860

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

No we don't have any solution for this. May be possible to modify this using custom coding, we have some recommended list of service providers here who can help in such cases for you:
https://toolset.com/consultant/

Thank you

#546871

I found a solution but I would need your help because there are 2-3 things which I do not understand very well.

If I create 3 custom post type "Author", "Articles" and " Author-Articles " to create many to many relationship. I do not how see creating a view by filtering the results with the name of the custom post type. Example I have an author Bruno Lebrun and I would want to show quite his fields, all the fields child etc.... And rather I would like to have that created that a view just with the name of the author to change. It is possible?

#546901

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello,

Please kindly open a new ticket for 2nd issue related to Custom post types and Many to Many relationship. This will help other users with similar problems to find solutions when searching the forum, I am not allowed to handle multiple issues in the same ticket as per support policy. https://toolset.com/toolset-support-policy/

I am giving here some general tips though but basically this is a separate question or issue. If you would like to do Filter by Post Type you would need to use this code snippet:
- https://toolset.com/forums/topic/post-type-filter/#post-486216
- Settings for View will be: https://toolset.com/forums/topic/filter-by-post-type/#post-537811

OR if you want to Filter posts by Post Authors, this is the doc:
https://toolset.com/documentation/user-guides/filtering-views-query-by-author/
- For listing posts of multiple authors shortcode would be like:
[php][wpv-view name="author-test-view" author="blebrun,perter,user3,user4"]

Thank you

The forum ‘Types Community Support’ is closed to new topics and replies.