My theme is not translated

Make sure you put your function inside after_setup_theme action hook add_action( ‘after_setup_theme’, ‘load_translation’ ); function load_translation() { if( is_dir( get_stylesheet_directory() . ‘/languages’ ) ) { load_theme_textdomain(‘adifier’, get_stylesheet_directory() . ‘/languages’); } else { load_theme_textdomain(‘adifier’, get_template_directory() . ‘/languages’); } Also, you have to make sure your theme domain is matched with the translated file. For an easier … Read more

How do loop categories post from according in WordPress? is it impossible to solve this problem?

Thanks all for help here the link about solved it bcworkz (@bcworkz) 37 minutes ago There are two issues I see. $cat_array is an array of IDs, not objects, so the ‘cat’ query arg should just be ‘cat’ => $cat, The other is when you use setup_postdata( $post ), you must explicitly declare global $post;

Very slow page loads

The problem as it turned out was the fusion-builder-mobile-layout-creator plugin. By going into settings for the theme and unchecking mobile layout (which checked itself again immediately), it cleared the buildup of entries. It may recur but that’s the fix. We might have to uninstall the plugin entirely longer term.

How can precision be improved for the debug log timestamp?

WordPress does not manage the format of the timestamp. Instead, WordPress hands off error message contents to the PHP function error_log(), which creates the timestamp. Finding no easy way to ask error_log() for higher resolution timestamp, combined with the fact that I’m creating the message content myself, I’ve added a microsecond string ahead of my … Read more