Skip Navigation

[Resolved] Split: How do I get relationship posts that we store as table in custom post type

This support ticket is created 4 years, 10 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 3 replies, has 2 voices.

Last updated by Nigel 4 years, 10 months ago.

Assisted by: Nigel.

Author
Posts
#1532157
1532107-bak.png
1532107-author.png

For example:
Please check snapshot.
I need to get all posts that have author in URL parameter.

#1532199

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screenshot 2020-02-28 at 13.14.00.png

Author is a related post.

Which relationship are we talking about? Authors << Posts ?

So this View is to display Posts connected to the Author specified in the URL parameter?

So you would need to add a relationship Query Filter for the author relationship.

The problem is, such a Query Filter requires the ID of the related post, not, for example, the post title. (See screenshot.)

How do you generate the URL parameter? Is it possible to change that so that the parameter is of the Author post ID and not the title? Because that is what is needed for the filter to work without getting into writing custom code to modify the query.

#1533351

Yes I can change its in my code I can change that very easily. I think order by is also not working in view.
I want to order this view by issue_date that is custom field.

New threads created by Nigel and linked to this one are listed below:

https://toolset.com/forums/topic/split-split-ordering-view-of-posts-by-date-custom-field/

#1535061

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

OK, so if you can change the URL parameter to use the post ID then that should work, we should be able to close here.

I will answer the new question in a new thread.