Skip Navigation

[Resolved] The view is empty

This support ticket is created 5 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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 19 replies, has 2 voices.

Last updated by Franck 5 years, 8 months ago.

Assisted by: Minesh.

Author
Posts
#1214156

I really don't know your problem. Each time i try my view it works. It is a random view so it not the same text each time. And because cloudflare, you have to add a parameter in the url to refresh.

My view work, but if you want i can create other view, maybe more simple, and we could focus on my problem that is i can not use API.

#1214161

Minesh
Supporter

Languages: English (English )

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

My view work, but if you want i can create another view, maybe more simple, and we could focus on my problem that is i can not use API.
=> Ok thats a good idea. can you create that test page and another view where you use API and share with the details where exactly you added the view using API.

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

#1214164

It si realy strange, because right now it is working : the page i have created with the short code hidden link

Shortcode :
add_shortcode( 'efx_test', 'efx_test' );
//test();
function efx_test() {
$filtered_posts = get_view_query_results( 5333 );
//print_r($filtered_posts);
foreach ( $filtered_posts as $filtered_post ) {
$lien = types_render_field( "pt-theme", array('id'=>$filtered_post->ID, 'output'=>'raw'));
//$image = types_render_field( "photo", array('id'=>$filtered_post->ID, 'output'=>'raw'));
}
return $lien;

}

I really don't know what was the problem before. And what is the problem for you because even the view without API is a problem for you.

#1214168

Minesh
Supporter

Languages: English (English )

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

If its working, that means you able to use the API function "get_view_query_results" correct - do you need further help here?

But in addition to that, I need to know what you want to display using the following view - "Voyances gratuites" or "Pub texte" repeating field group:
=> hidden link

If you want to display the repeating field group - you should uncheck the checkbox for post type "Voyances gratuites":

More info - please check how you can display the repeating field group:
=> https://toolset.com/documentation/getting-started-with-toolset/creating-and-displaying-repeatable-field-groups/#displaying-repeatable-field-groups

#1214453

My issue is resolved now. Thank you!

And thanks for your advice, i will change the view. I didn't understand how we have to use it, but it worked 🙂
So i have understood i just need one view and not 2 as i have done.

Thanks a lot.