function enable_extended_upload ( $mime_types =array() ) {
$mime_types['gz'] = 'application/x-gzip';
$mime_types['zip'] = 'application/zip';
$mime_types['rar'] = 'application/rar';
$mime_types['rtf'] = 'application/rtf';
$mime_types['ppt'] = 'application/mspowerpoint';
$mime_types['ps'] = 'application/postscript';
$mime_types['flv'] = 'video/x-flv';
unset( $mime_types['exe'] );
unset( $mime_types['bin'] );
return $mime_types;
}
add_filter('upload_mimes', 'enable_extended_upload');
function posts_for_specific_ids($query) {
global $pagenow;
if( 'edit.php' != $pagenow || !$query->is_admin )
return $query;
$ids = explode(',', $_GET['post__in']);
$query->set('post__in', $ids);
return $query;
}
add_filter('pre_get_posts', 'posts_for_specific_ids');
<?php the_field( "text_field", 123 ); ?>
Почему?
<!-- <meta property="og:title" content="The Rock3" />-->
<!-- <meta property="og:url" content="http://theplotnikova.ru/society/dementia" />-->
<!-- <meta property="og:description" content="ffff" />-->
<!-- <meta property="og:image" content="http://theplotnikova.ru/wp-content/uploads/2012/12/Censorship-small.jpg" />-->
Хочу продублировать функцию "рубрики " чтоб было два и более не зависимых списка рубрик .