Calling Category name without the link

What you are looking for is get_the_category(). Retrieve a list of the categories, and then run a loop and only output their names: $categories = get_the_category(); if ( ! empty( $categories ) ) { foreach( $categories as $category ){ echo esc_html( $category->name ); } } This function returns an array of WP_Term objects. You can … Read more

how to fix loading scripts in child theme?

You are using a child theme here, it means that you should use get_stylesheet_directory_uri() to get the child theme’s directory. So, in your case, get_stylesheet_directory_uri() will return: localhost:8888/wp-content/themes/x-child/ and get_template_directory_uri() will return: localhost:8888/wp-content/themes/x/ Use this to build your paths. Also, pay attention that you need to include a forward slash before your style/script’s name, since … Read more

Loading my main.js file from my child theme

On line 18 of your child theme’s functions.php you are enqueuing main.js with get_template_directory_uri(). That function is returning the path to you’re parent theme. Try replacing it with get_stylesheet_directory_uri(), which will return the path to your child theme’s root directory. I can’t blame you for not realizing the difference though. The developer.wordpress.org entry for get_template_directory_uri() … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)