Random white space before doctype
This looks strange for me: <!–[if gt IE 9]><!–><html class=”no-js” <?php language_attributes(); ?>> <!–<![endif]–> You are opening (<!–) more comments then you close and aren’t nested comments forbidden in html?
This looks strange for me: <!–[if gt IE 9]><!–><html class=”no-js” <?php language_attributes(); ?>> <!–<![endif]–> You are opening (<!–) more comments then you close and aren’t nested comments forbidden in html?
A theme has near complete control over the appearance of a site, including the widgets. And any plugin could load a stylesheet that overrides elements of your, intentionally or not. There are guidelines to encourage certain standards of code quality, which are enforced to some degree if the plugin/theme is hosted on the WordPress.org plugin … Read more
By default, options are auto-loaded. So all options with autoload: yes will be fetched very early. Your option will not need an additional query. Also, database access is often faster and more reliable than file access. The options table is also usually included in database backups, and it can be exported in multiple formats. So … Read more
Change this: else if ($widget[“image_from”] == “custom”) { $post_custom_id = get_post_meta($row->post_id, $widget[“image_custom”], true); $row->image = get_bloginfo(‘url’).”/scripts/timthumb.php?src=”https://wordpress.stackexchange.com/questions/106998/.get_bloginfo(“url’).”/wp-content/uploads/”.get_post_meta($post_custom_id,”_wp_attached_file”,true).”&h=70&w=55&zc=1″; } To this: } else if ( ‘custom’ == $widget[‘image_from’] ) { $post_custom_id = get_post_meta( $row->post_id, $widget[‘image_custom’], true ); if ( get_post_meta( $post_custom_id, ‘_wp_attached_file’, true ) ) $row->image = get_bloginfo(‘url’) . ‘/scripts/timthumb.php?src=”https://wordpress.stackexchange.com/questions/106998/. get_bloginfo(“url’) . ‘/wp-content/uploads/’ . get_post_meta( $post_custom_id, ‘_wp_attached_file’, … Read more
You can use wordpress templates to load for a particular page. just create a template file with any name ( place template definition in file i.e commented code to declare a template) and select it as a template while adding a page. in this way file will be loaded automatically for page and you can … Read more
Post meta is a bad place for translations, because you cannot search by default in these fields, and changing the search to do that results in rather slow and complex queries. What you can do: set up WordPress as a multi-site, use the sub-sites option. Now create a new sub-site for each language, so you … Read more
My answer might come a bit late for you, but as I had the same problem today, here’s what I found out: 1) First of all, if you set ‘type’ => ‘option’ for your custom settings, you should use the get_option() function to retrieve the values. If you set ‘type’ => ‘theme_mod’ (or don’t set … Read more
Prince’s answer is technically true, but doesn’t answer your specific questions. In the interest of getting you to learn more about WordPress, I’ll get those: For Author, is that the blog owner, or the theme creator? This should represent the theme author/creator. Author URI, is that the blog owner’s personal website, or the creator’s? Again, … Read more
This is a known issue for WordPress 3.6. There is already a ticket in the WordPress bug tracker. A patch can be found there too but I haven’t tried it yet.
Well, even at a quick glance, I can see that you are using the same meta box ID – postparentdiv – both times, which probably causes issues internally. That said, this seems a convoluted path to take at all, and possibly an XY Problem. Why do you need to scan for templates at all?