Hey guys – Any ideas on this issue? Can someone point me in the right direction?
Thank you for your reply. I see that instead of echo, if I use return It fixes the issue.
I have another issue though. I can modify the same function to display all the testimonials on a different page. All I have to do is to modify the query parameter and set it to ‘posts_per_page’ => ‘-1’. Doing this will make sure that the query is going to return all the custom post types (in my case – testimonials) and display them on the page. How do I make sure to display lets say 10 testimonials on a page, and if there are more than 10 testimonials (custom post types) then display a pagination.
How can I modify the function above to display the default pagination that comes with Enfold. Thanks