ID, ARRAY_A); if ($mainAuthor[post_author] == $presentAuthor) {$k++;} else { $other_authors = get_post_custom_values('other_author'); if ( count($other_authors) < 1 ) continue; else { if (in_array($loginAuthor, $other_authors, true)){ $k++; } else {continue;} } } endwhile; else: continue; endif; if ($k == 0) { echo '

', $title_01, '

'; } else { echo '

', $title_02, ' ', $k, ' ', $title_03, '

'; } } function full_post_list ($presentAuthor='', $loginAuthor='', $lang='') { // Constants for the language $noPost = __("The author has no post.", "author-complete-post-list"); $stored = __("stored in", "author-complete-post-list"); $time = __("on", "author-complete-post-list"); // End constants // initialize var: $k = 0; // Get all the existing posts: query_posts('posts_per_page=-1'); if ( have_posts() ) : while ( have_posts() ) : the_post(); $mainAuthor= get_post($post->ID, ARRAY_A); if ($mainAuthor[post_author] == $presentAuthor){ echo '

- '; echo the_title(); echo ' ', $time, ' '; echo the_time('d/m/Y'); echo ', ', $stored, ' '; echo the_category('&'); echo '

'; echo "\n"; echo "\n"; $k++; } else { $other_authors = get_post_custom_values('other_author'); if ( count($other_authors) < 1 ) continue; else { if (in_array($loginAuthor, $other_authors, true)){ echo '

- '; echo the_title(); echo '', $time; echo the_time('d/m/Y'); echo $stored; echo the_category('&'); echo '

'; echo "\n"; echo "\n"; $k++; } else {continue;} } } endwhile; else: continue; endif; if ($k = 0) echo $noPost; } ?>