page-slug.php not working but only for specific slug

I thought it might be conflicting with something I had in functions.php, however nothing else was using the name “comics” There is, here: // Arguments $args = array( ‘labels’ => $labels, ‘public’ => true, ‘menu_icon’ => ‘dashicons-book-alt’, ‘hierarchical’ => true, ‘exclude_from_search’ => false, ‘has_archive’ => true, ‘publicly_queryable’ => true, ‘rewrite’ => array( ‘slug’ => ‘comics’, … Read more

Undefined get_header function

What you downloaded was not a replacement for WordPress, it was a theme. Themes need to go inside the wp-content/themes folder. Once a theme folder is placed correctly it should appear as an option in the theme menu in WP Admin where you can preview and activate it. In the meantime, you need to reinstall … Read more

Create a page template for “top rated posts” but show full content and not just a list

I opened up that plugin (WP-PostRatings) and located the get_most_rated() function. It’s in the following file: includes/postratings-stats.php In that file, on line 57 you get the following: foreach ($most_rated as $post) { $output .= expand_ratings_template($temp, $post, null, $chars, false).”\n”; } From that, I went searching for the expand_ratings_template() function. Found that in the following file: … Read more

Short code template + ajax

As Tom J Nowell noted in the comments, your setup is bit wonky, which is why it won’t work. You need to add the ajax actions and register the shortcode earlier – i.e in a custom plugin or in the theme functions.php. This is related to how WordPress handles requests and in which order it … Read more

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