Skip Navigation

[Resolved] 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 35 replies, has 2 voices.

Last updated by Nigel 4 years, 10 months ago.

Assisted by: Nigel.

Author
Posts
#1529245

Nigel
Supporter

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

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

I messaged the supporter working currently, but I don't know if they will be able to step in because they already have a large number of tickets in their queue.

If you share what you've done so far here it will mean whoever is able to reply to you first will have something to go on, the more specific you are the easier it will be for someone to help you.

#1530139

Nigel
Supporter

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

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

I'm working again if you still need assistance.

#1530143

Hey I created one view called issue but I tried with same process as you told me but nothing is displaying on front end.

#1530147

Nigel
Supporter

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

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

You understand how Views work?

That you have the first section to define what is being queried, e.g. posts of some type in a particular order, and the second part of the View is the output part that generates the markup that displays the content.

Do you have a screenshot of the output section of your View you can share with me?

#1530159

hidden link

#1530165

back end snapshot: hidden link

#1530169

Nigel
Supporter

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

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

Thanks.

Where did you insert the View?

The Query Filter says to show Issues related to the current Volume in the loop.

That means the expected context for this View is the output section of a View displaying Volumes.

I don't think that's what you want. I think you can simply delete the Query Filter, then this View will show all Issues, and in the output section it will output both the title of the issue and of the parent Volume, which is closer to your objective I believe.

#1530187

hidden link
It does not display volume.

#1530215

Nigel
Supporter

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

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

I looked at your View.

The Content Selection says to query Issues and Volumes.

I thought the intention was to display a list of issues (with the title of the parent volume).

In which case you should only be querying Issues, not Volumes.

I noticed that the Output Editor (which normally you would not need to make any changes to) includes a wpv-post-body shortcode; you should remove it.

When I visit the page with the View it otherwise looks to be working correctly.

#1530271

Can you tell me else statement. I am applying if condition but I think if and else both working at same time.
[wpv-conditional if="( '[wpv-post-featured-image output="url"]' eq '' )"]
<img src="hidden link">
[/wpv-conditional]
[wpv-conditional if="( '[wpv-post-featured-image output="url"]' eq '[wpv-post-featured-image output="url"]' )"]
<img src=" [wpv-post-featured-image output='url']">
[/wpv-conditional]

I need featured image show when its url is there otherwise preview image will show.

#1530277

Can you tell me else statement. I am applying if condition but I think if and else both working at same time.
[wpv-conditional if="( '[wpv-post-featured-image output="url"]' eq '' )"]
<img src="hidden link">
[/wpv-conditional]
[wpv-conditional if="( '[wpv-post-featured-image output="url"]' eq '[wpv-post-featured-image output="url"]' )"]
<img src=" [wpv-post-featured-image output='url']">
[/wpv-conditional]

I need featured image show when its url is there otherwise preview image will show.

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

https://toolset.com/forums/topic/split-how-to-conditionally-show-featured-image/

#1530345

Nigel
Supporter

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

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

As the original issue is resolved we can close here and deal with new questions in new threads.

I've split your last question into a new thread and I will follow up there, now.

In the meantime you can close this.

#1530361

My issue is resolved now. Thank you!

#1530449

hidden link
Please check snapshot.
I need to open all articles that are coming under this Issue.

I created one view but same no data found.

#1530689

Nigel
Supporter

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

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

What is the VIEW ALL ARTICLES link supposed to link to?