All AnsPress page contents are blank
I have a multisite WordPress installation. Just to clarify, I am not talking about a whole blank page, just contents of pages are all blank. I have header, page title, all the content, and footer of these pages but no content rendered by AnsPress. I had another AnsPress installation, it didn’t have any problems like that. So… I don’t know. I also tried downgrading AnsPress and WordPress to earlier versions.
Also, maybe this helps: question contents are not shown even when I enter content from the admin menu. Questions page shows the content I enter but no content is rendered by AnsPress. Looks like just an ordinary page with content. Ask page, no content.
Look like this issue has something to do with CSS. Check in browser developer tool.
It turns out, the problem was that I didn’t have the [anspress] shortcode in the base page content. Clicking the “create base page” button in the warning message when you don’t have a base page creates a page with the shortcode in the content. But creating an empty page manually and choosing it as the base from the settings page doesn’t give you that. So I got an empty page. Dev to dev advice: I think you should better document that or maybe don’t use the shortcode to render the content. Using “the_content” hook to inject your content there may be a better solution than this. It was a real headache for me yesterday, with such a simple solution.
Hello @Ersagun, If you look into our source in GitHub there you’ll see that AnsPress add shortcode to base page while creating. Also its documented in our FAQ. But I will try to improve it more. Thanks
Tried disabling multisite just now. Nope. Still no content.