Empty paragraphs around figure and figcaption tags when using markdown
Empty paragraphs around figure and figcaption tags when using markdown
Empty paragraphs around figure and figcaption tags when using markdown
You’ll need to use register_taxonomy with hierarchical set to false: function add_custom_taxonomies() { // Add new “Locations” taxonomy to Posts register_taxonomy(‘keyword’, ‘post’, array ( ‘hierarchical’ = false )); } add_action( ‘init’, ‘add_custom_taxonomies’, 0 ); For more information: – WordPress API – Tutorial @ Smashing magazine
How to block action if post is “dirty”?
In the admin menu under Settings -> Writing, make sure the option to correct invalid XHTML is unchecked. Ref: http://codex.wordpress.org/Settings_Writing_Screen
Something went wrong with your migration. A plugin– I think it is this one— does not have the table(s) it needs to operate. I assume that some tables were not transfered. Disable that plugin, then reactivate it and this should clear up. I assume that the plugin will create its tables on re-activation. If you … Read more
Your first line works for me when I type it in the console of Chrome: jQuery(‘#post_status option[value=”draft”]’).text(‘Approve’); so I assume your problem may be that the element you want might not be loaded yet from where you run your script. Try wrapping it in this: jQuery(document).ready(function() { (function ($) { $(‘#post_status option[value=”draft”]’).text(‘Approve’); })(jQuery); });
Finally got it, my problem was in wp-include/post.php, due to bad translations of the queries from MySQL to SQL. I had to replace code in wp_insert_post function with this code: if ( empty($post_date_gmt) || ‘0000-00-00 00:00:00’ == $post_date_gmt ) { if ( !in_array( $post_status, array( ‘draft’, ‘pending’, ‘auto-draft’ ) ) ) $post_date_gmt = get_gmt_from_date($post_date); else … Read more
How to add authors contact info to author metabox in post editor?
You are using too many static pages. Pages are hierarchical and wordpress doesn’t handle page that well. The same goes for Custom Post Type with hierarchical option set. The only solution here is to ask your host to increase your RAM size. That will solve the problem for now. But if you continue to add … Read more
Solved it for different edit pages for different roles. In my method resposible for rendering the field I have: if ( count( array_intersect( $allowed_editors, $user->roles ) ) < 1 ) $readonly = ‘readonly’; Which I later use to either set the input field as readonly or add/remove classes before rendering it. Still working for the … Read more