Why adding Categories does not auto refresh in Backend while using my custom theme?

admin2025-06-06  2

If I am using my own created custom theme, the Post Categories Page in admin panel is not getting updated automatically when I add a new Category. To see the new category I have to reload the page Manually.

When I change to default themes it works as perfectly. So the problem is in my theme.

I think I must have missed something in my functions file.

Any idea what it can be??

If I am using my own created custom theme, the Post Categories Page in admin panel is not getting updated automatically when I add a new Category. To see the new category I have to reload the page Manually.

When I change to default themes it works as perfectly. So the problem is in my theme.

I think I must have missed something in my functions file.

Any idea what it can be??

Share Improve this question edited May 13, 2014 at 18:41 Pieter Goosen 55.5k23 gold badges117 silver badges211 bronze badges asked Apr 20, 2014 at 6:07 rafsuntaskinrafsuntaskin 1002 silver badges12 bronze badges 3
  • No one has faced this problem?? – rafsuntaskin Commented Apr 24, 2014 at 5:56
  • I also facing this error. Any solution for this case? @rafsuntaskin – user65056 Commented Dec 19, 2014 at 21:55
  • Check your Function.php file for unwanted spaces from top or bottom. Or may be some Function declaration is not proper – rafsuntaskin Commented Jan 2, 2015 at 16:52
Add a comment  | 

2 Answers 2

Reset to default 2

Locate in your theme's functions.php when you add JavaScript scripts.

function theme_scripts() {
  wp_enqueue_style( 'theme-style', get_stylesheet_uri() );
  wp_enqueue_script( 'theme-navigation', get_template_directory_uri() . '/app.js', array(), '20170325', true );


  if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
    wp_enqueue_script( 'comment-reply' );
  }
}

add_action( 'wp_enqueue_scripts', 'theme_scripts' );

And put them at the end of the file functions.php

I have worked doing this action.

If you are facing this problem you should check your themes function.php file. I had some error in that which caused this problem.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1749200871a317208.html

最新回复(0)