I am trying to:
Use a view in the no results archive page.
[wpv-no-items-found]
[wpv-post-body view_template="Base Pagina Bebes No Resultados"]
[/wpv-no-items-found]
Link to a page where the issue can be seen:
I expected to see:
The view result, but show nothing.
Instead, I got:
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Filipe,
Thank you for contacting our support forum.
I don't believe that the wpv-post-body shortcode would work here .
What I recommend that you do is to add the no results found template directly within the [no-results-found] shortcode.
Thanks,
Shane
Hi
I have a view for this because I am using DIVI, how can I customize the no results?
Can I do it with code?
Thanks
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Filipe,
You mean you are using a view to display the no results found section ?
Just confirm this for me.
Thanks,
Shane
Yes just like the code I sent.
[wpv-no-items-found]
[wpv-post-body view_template="Base Pagina Bebes No Resultados"]
[/wpv-no-items-found]
I got an solution but is not the best one. Woul be great you tell your team to get this for next realeases, normaly is needed show more than a text to the user in a no result page.
I put a div with an ID and with jquery I show or not the view. In a custom archive.
[wpv-no-items-found]<div id="no-resultados"></div>[/wpv-no-items-found]
<script>
jQuery(function ($) {
$( document ).ready(function() {
if ( $( "#no-resultados" ).length ) {
console.log('mostrar div ok');
$("br").remove();
$( "#nres-dav-arch" ).show();
}
});
});
</script>
<div id="nres-dav-arch" style="display: none;">
<?php echo do_shortcode('[et_pb_section global_module="213747"][/et_pb_section]');?>
</div>
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Filipe,
Thank you for the suggestion.
Also you should be able to add this shortcode [et_pb_section global_module="213747"][/et_pb_section] directly to the no results found section.
Thanks,
Shane