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.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745260363a4619184.html
评论列表(0条)