Home › Forums › Product Support Forums › Related Posts Pro for WordPress Support › related post items added to post not showing › Reply To: related post items added to post not showing
Hi Jessica 🙂
In the meantime I was able to find and fix the problem on my local test servers, so an update is coming soon to eleminate all these issues.
As for your question: Well, due to the way the plugin is built and it’s displayed there is no PHP function to use to get the results count. However I think there might be a way to do it via a javascript, so I put together a small snippet for you.
Place this into the functions.php file in your active theme directory (copy from line 3):
This will load a script into the site footer, which will check if the related posts container is empty, and if so, then hides the HTML code you wrapped it around with 🙂 I have not been able to test it, but let’s hope it works!