admin管理员组

文章数量:1417070

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 question

I created a child theme to another template, which introduces custom post type with loads of custom fields and specialized functions.

Notes:

  1. I did not touch anything in the custom post type logic
  2. Only change, apart from usual child theme style.css and functions.php to load parent style is to introduce different logic of search.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 question

I created a child theme to another template, which introduces custom post type with loads of custom fields and specialized functions.

Notes:

  1. I did not touch anything in the custom post type logic
  2. Only change, apart from usual child theme style.css and functions.php to load parent style is to introduce different logic of search.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 badges
Add a comment  | 

1 Answer 1

Reset to default 1

I 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