Child theme blocks post from publishing

Closed. This question is off-topic. It is not currently accepting answers.Questions that are too localized (such as synt

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745260363a4619184.html

相关推荐

  • Child theme blocks post from publishing

    Closed. This question is off-topic. It is not currently accepting answers.Questions that are too localized (such as synt

    3小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信