Closed. This question is off-topic. It is not currently accepting answers.admin管理员组文章数量:1417070
Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?
Closed 5 years ago.
Improve this questionI created a child theme to another template, which introduces custom post type with loads of custom fields and specialized functions.
Notes:
- I did not touch anything in the custom post type logic
- Only change, apart from usual child theme
style.css
andfunctions.php
to load parent style is to introduce different logic ofsearch.php
to display only that custom post type in search results
However, when I load that child template, I am unable to publish a new post of that custom post type. Updating current posts work, but clicking "Publish" button does nothing. Saving draft works.
Where should I look, apart server logs (which are empty) in order to resolve this?
Closed. This question is off-topic. It is not currently accepting answers.Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?
Closed 5 years ago.
Improve this questionI created a child theme to another template, which introduces custom post type with loads of custom fields and specialized functions.
Notes:
- I did not touch anything in the custom post type logic
- Only change, apart from usual child theme
style.css
andfunctions.php
to load parent style is to introduce different logic ofsearch.php
to display only that custom post type in search results
However, when I load that child template, I am unable to publish a new post of that custom post type. Updating current posts work, but clicking "Publish" button does nothing. Saving draft works.
Where should I look, apart server logs (which are empty) in order to resolve this?
Share Improve this question asked Aug 8, 2019 at 6:33 Pavel JanicekPavel Janicek 2123 silver badges14 bronze badges1 Answer
Reset to default 1I assume it's only the child-theme which encounters this error - and therefore it is probably a small error - but not seeing any errors in the logs makes it harder to determine exactly where the error is.
First of all, I would suggest you turn on your WP_DEBUG in the wp-config.php, maybe there's an error you're missing. You can find more information on the WP_DEBUG define here.
If no errors are shown, please check your console for any errors (Right click > Inspect > console tab). I'm certain there's an error either by activating WP_DEBUG or checking the console.
I have experienced this error before, and whenever I was saving a post, there was an AJAX-error occuring. I fixed this by starting over with the child-theme, as I must have forgot something.
本文标签: Child theme blocks post from publishing
版权声明:本文标题:Child theme blocks post from publishing 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745260362a2650329.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论