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.
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.
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.
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
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.