Wordpress: single.php doesn't display the_content()

前端 未结 3 2019
有刺的猬
有刺的猬 2021-02-02 10:34

I\'m creating a custom Wordpress Theme and I can\'t seem to get the single.php template to work. Below is the code I have written. The title comes up but the content doesn\'t. A

3条回答
  •  没有蜡笔的小新
    2021-02-02 11:08

    I'm writing this because I had a similar problem. My content wasn't showing up. However my call to the_content was inside the The Loop. Furthermore, this was working on my development server but not on the production server.

    I was able to solve this by removing all the plugins and then, one by one, add them back in.

    Also, of course, if you have caching enabled, a good first step is to clear the cache.

提交回复
热议问题