logo
Ask your WordPress questions! Pay money and get answers fast! (more info)

This member is one of the top experts of all time, the true elite. Daniel Yoen

Website Twitter

Bio:

You can keep me busy here : daniel@yoen.me

Answers Given: 164 (see them all)
Contests Won: 50
Prize Money Earned: $794
Questions asked: 0
Questions refunded: 0 (see all?)
Is a top asker (has the power to vote on anything):
Subscribes to all the discourse posted to the site?: No
Country: Indonesia
City:
Netvotes this month (upvotes minus downvotes): 3
Netvotes of all time (upvotes minus downvotes): 3
Joined the site: May 23, 2012





Daniel Yoen's upvoted answers:






Daniel Yoen's downvoted answers:






Answers given to these questions:

See more?






Questions voted:

The community is grateful to those experts who take the time to vote on questions.

See more?






Daniel Yoen has not asked any questions






This member has not made any recommendations. If you are one of the top experts, please offer one now!






Daniel Yoen's discourse:

Written in response to Urgent multi site custom loop to check if posts with a custom...:

Hello,

I just wanted to make a fair,

Josh asking for more solutions, I gave him this code :

/* MEDIA LIBRARY FILTER */
add_filter('parse_query', 'node_admin_posts_filter');
add_action('restrict_manage_posts', 'node_admin_posts_filter_restrict_manage_posts');
function node_admin_posts_filter($wp_query)
{
if (is_admin() && isset($_GET['post_id']) && $_GET['post_id'] != '')
{
$original_query = $wp_query;
$wp_query->set('post_parent', $_GET['post_id']);
$wp_query = $original_query;
wp_reset_postdata();
}
elseif (is_admin() && isset($_GET['mime']) && $_GET['mime'] != '')
{
$original_query = $wp_query;
$wp_query->set('post_mime_type', $_GET['mime']);
$wp_query = $original_query;
wp_reset_postdata();
}
}
function node_admin_posts_filter_restrict_manage_posts()
{
global $wpdb;
$screen = get_current_screen();
if($screen->id == "upload")
{
$get_posts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE $wpdb->posts.post_type IN ('post') ORDER BY $wpdb->posts.post_title ASC");
echo '<select name="post_id">';
echo '<option value="">Upload To</option>';
$current = isset($_GET['post_id']) ? $_GET['post_id'] : '';
foreach($get_posts as $get_post)
{
$select = null;
if($current == $get_post->ID) { $select = ' selected="selected"'; }
echo '<option value="' . $get_post->ID . '" ' . $select . '>' . $get_post->post_title . '</option>';
}
echo '</select>';

$mimes = get_allowed_mime_types();
echo '<select name="mime">';
echo '<option value="">Mime Type</option>';
$currentmime = isset($_GET['mime']) ? $_GET['mime'] : '';
foreach($mimes as $mimekey => $mimevalue)
{
if( $currentmime == $mimevalue) { $selectmime = ' selected="selected"'; } else {$selectmime = '';}
echo '<option value="' . $mimevalue . '" ' . $selectmime . '>' . $mimevalue . '</option>';
}
echo '</select>';
}
}

Thank you very much,

Best,
Daniel Yoen

link

Written in response to Redirect loop issue when Catalyst/dynamik activated.:

Hello,

You have function that custom permalink ?

link

Written in response to images in Visual Editor:

hello,

problem is the images does not appear ?, I think problem is not my script.

also, please give me layout you want :-)

or you can give me access to your site (contributor not admin), I will fix this problem :-)

Best,
Daniel

link

Written in response to (Hierarchical) Custom Post Type & Taxonomy Permalinks:

hello,

If your problem solved and you accept my answer, please mark your question is complete :)

Best,
Daniel

link

See more?






Daniel Yoen has not had any questions refunded






Daniel Yoen suggested these prizes as appropriate for these questions:

See more?