put in function.php:
class Walker_Category_Posts extends Walker_Category
{
function start_el( &$output, $category, $depth, $args )
{
parent::start_el( $output, $category, $depth, $args );
if ( $category->parent )
return $output;
if ( $posts = get_posts( 'posts_per_page=-1&no_found_rows=1&update_term_cache=0&cat=' . $category->term_id ) ) {
$output .= '<ul>';
foreach ( $posts as $post )
$output .= '<li><a href="' . get_permalink( $post->ID ) . '">' . apply_filters( 'the_title', $post->post_title ) . '</a></li>';
$output .= '</ul>';
}
}
}
where you want to display it:
<?php $title_categories = 'Categorie' ?> <?php wp_list_categories(array( 'walker' => new Walker_Category_Posts, 'title_li' => $title_categories, 'hide_empty'=> 0 )Read More
function menu_speciale(){
$id = get_the_ID(); $categorie_speciali=array(63,65,67); $array_genitori=get_ancestors( $id, 'page' );
echo"<div class=\"menu_speciale\"><ul>";
while(list(,$val)=each($categorie_speciali)){
if(in_array($val,$array_genitori)||($id==$val)){
$class="selected";
}
else $class="";
$name=get_page($val);
if (qtrans_getLanguage() == 'en')
{
$lang_perma = "?lang=en";
if ($val == 63)
{
$nome_cat_spec = "Assistance";
}
elseif ($val == 65)
{
$nome_cat_spec = "Search";
}
elseif ($val == 67)
{
$nome_cat_spec = "Teaching";
}
}
elseif (qtrans_getLanguage() == 'it')
{
$lang_perma = "?lang=it";
if ($val == 63)
{
$nome_cat_spec = "Assistenza";
}
elseif ($val == 65)
{
$nome_cat_spec = "Ricerca";
}
elseif ($val == 67)
{
$nome_cat_spec = "Didattica";
}
}
$permalink_lang = get_permalink( $val ); echo"<li class=\"$class\"><a href=\"$permalink_lang\"> $nome_cat_spec </a> </li>";
}
________________________________
if (qtrans_getLanguage() == 'en')
{ text in English }
else
{ text in Italian }
_________________________Read More
1.open terminal
2. enter this
defaults write com.apple.Finder AppleShowAllFiles TRUE
3. restart finder, this conmmand restart finder
killall Finder
______________________________________
- If you wants to HIDES again you hidden files
1.
defaults write com.apple.Finder AppleShowAllFiles FALSE
2.restart finder
killall FinderRead More



