Adding custom Javascript to the head tag in Admin
I think what you are looking for is here (Look for the section entitled “Load Scripts only on pages where needed”): What is the best way to add custom javascript files to the site?
I think what you are looking for is here (Look for the section entitled “Load Scripts only on pages where needed”): What is the best way to add custom javascript files to the site?
If that is custom functionality in theme options page then it is highly specific to that theme. Likely you will need to edit theme files and/or create child theme. Plus option pages can be simply in WordPress API but just as well can be built with help of theme framework or other kind of third … Read more
Answer 1 is not the best way… it’s the old way. The best solution going which I have found, and use regularly for moving site from local dev to live is at http://pluginbuddy.com/purchase/backupbuddy/. It backs up everything, including databases and plugins, and lets you restore a site or migrate an entire site to a new … Read more
1) Is integrating plugins a common practice? Not really. Normally you got a theme that offers a base functionality. You then only extend the theme with plugins for special purpose like twitter stuff, event calendars, etc. Imo it makes sense. I’m currently working on an extremly slim theme that has some plugins (OOP approach) that … Read more
If by draft, you mean “autosave”, you can consider using this plugin: http://wordpress.org/extend/plugins/wp-feature-disable/ If you want to disable revisions, instead…try this: define(‘WP_POST_REVISIONS’, ‘false’); You can put that in your /wp-config.php file and it should immediately take effect. Any previously saved revisions in your database will need to be purged. You can do it by running … Read more
the simple solution would be to paste this snippet of code in your theme’s functions.php file : add_action(‘wp_head’,’keywords_and_desc’); function keywords_and_desc(){ global $post; if (is_single()||is_page()){ if(get_post_meta($post->ID,’my_keywords’,true) != ”) echo ‘<meta content=”‘.get_post_meta($post->ID,’my_keywords’,true).'” name=”keywords”>’; if(get_post_meta($post->ID,’my_description’,true) != ”) echo ‘<meta content=”‘.get_post_meta($post->ID,’my_description’,true).'” name=”description”>’; } } And the just add keywords and description using the built in custom fields on a … Read more
1) add “comments” to the supports array when registering the post type. 2) add the comments_template() function inside the loop of the single.php template and you are good to go.
WordPress itself doesn’t actually produce the complete HTML, just parts of it, and only when the theme tells it to. It leaves the header and body and such up to the theme. So if your theme didn’t output a section, then it wouldn’t be output. While WP itself really is a full fledged CMS, you … Read more
You alluded to this in your comments, one way is to provide an API key for your plugin, that way your clients are actually paying for support and updates and not code, it’s really one of the only decent ways to go about this. For example if their API key is not valid or expires … Read more
the multiple=”multiple” or multiple=”” attribute of input file tag is fairly new and not widely supported cross browser but if that is the way you want to go, try this: <form … <input type=”file” id=”image” name=”image[]” onchange=”updateList();” multiple=”multiple” > <ul id=”file_list”></ul> </form> <script> function updateList(){ //get the input and UL list var input = document.getElementById(‘image’); … Read more