Leandro Dimitrio
Forum Replies Created
-
Forum: Plugins
In reply to: [zTranslate] zTranslate and WordPress SEO by YoastHey man!
Try going to WordPress SEO settings > Titles, and change the title separator to anything other than “-“.
Forum: Themes and Templates
In reply to: get_terms to display only direct childrenGot it!
Managed to do it by setting both “child_of” and “parent” to $term_id.
$termchildren = get_terms($taxonomy_name,array('child_of'=>$current_term->term_id,'parent' => $current_term->term_id));
Cheers!
Forum: Plugins
In reply to: [Latest Tweets Widget] Translating this pluginEven better, I changed line 63 from:
$newdate = date_i18n("j \d\e F \d\e Y, G:i", strtotime($created_at));
to
$newdate = date_i18n(get_option('date_format') . ', ' . get_option('time_format'), strtotime($created_at));
That way, it gets both date and time from WP’s database ??
Cheers
Forum: Plugins
In reply to: [Latest Tweets Widget] Translating this pluginOne thing I had to change manually in latest-tweets.php, in order to have the date displayed according to our local settings, was to use date_i18n.
In line 60, I changed from:
$final = apply_filters('latest_tweets_render_tweet', $html, $date, $link ); if( $final === $html ){ $final = '<p class="tweet-text">'.$html.'</p>'. '<p class="tweet-details"><a href="'.$link.'" target="_blank">'.$date.'</a></p>'; } $rendered[] = $final;
To:
$final = apply_filters('latest_tweets_render_tweet', $html, $date, $link ); if( $final === $html ){ $newdate = date_i18n("j \d\e F \d\e Y, G:i", strtotime($created_at)); $final = '<p class="tweet-text">'.$html.'</p>'. '<p class="tweet-details"><a href="'.$link.'" target="_blank">'.$newdate.'</a></p>'; } $rendered[] = $final;
Forum: Plugins
In reply to: [Latest Tweets Widget] Translating this pluginSure thing!
I think we can carry it on through localize.biz… what do you say?