Tag Info

New answers tagged

0

I am still experiencing with this, but here is how I got rid of the unwanted text area: if ( !is_admin() ) { //you might decide to change this conditional statement. //I found the filter in /wp-includes/class-wp-editor.php @249 add_filter('the_editor', 'my_remove_editor_te'); function my_remove_editor_te(){ $editor = ''; return ...


1

Add the filter "ajax_query_attachments_args" in this way and URLs variables are sent to the class WP_Query the default is to send array(7) { ["orderby"]=> string(4) "date" ["order"]=> string(4) "DESC" ["posts_per_page"]=> string(2) "40" ["paged"]=> string(1) "1" ["post_type"]=> string(10) ...


2

You can adjust the attachment query in the media library popup, through the ajax_query_attachments_args filter. Here are two PHP 5.4+ examples: Example #1: Show only attachments that where uploaded during the last 24 hours: /** * Media Library popup * - Only display attachments uploaded during the last 24 hours: */ add_filter( ...


0

To use wp_editor() you'll need to replace your textarea tag with the output from wp_editor() like so: case 'textarea': wp_editor($meta, $field['id']); echo '<br /><span class="description">'.$field['desc'].'</span>'; break; You don't need to echo wp_editor() since it does it automatically. You can pass an array of settings as a ...



Top 50 recent answers are included