Hi all,
I am trying to modify plugin Simple Yearly Archive. This plug in display an archive by year and allow to show several details of the posts (title, category, excerpt...)
I'm currently trying to modify php in order not to show excerpt but content.
$excerpt = ''; if(get_option('sya_excerpt')==TRUE) { if ( $maxzeichen != '0' ) { if ( !empty($post->post_content) ) { $excerpt = substr($post->post_content, 0, strrpos(substr($post->post_content, 0, $maxzeichen), ' ')) . '...'; } } else { $excerpt = apply_filters('the_content', $post->post_content); } $listitems .= '<br /><div style="padding-left:'.$indent.'px" class="robots-nocontent"><cite>' . strip_tags($excerpt) . '</cite></div>'; }
I have already replace $post->post_excerpt
by $post->post_content
and add $excerpt = apply_filters('the_content', $post->post_content);
.
Currently the page is looking like this http://graye-sur-mer.org/wordpress/compte-rendu-des-seances-du-conseil/ and I would like instead of Download to have the button like in http://graye-sur-mer.org/wordpress/conseil-municipal-du-18-avril-2014/.
I have already tried several things:
1- replace $excerpt = apply_filters('the_content', $post->post_content);
by $excerpt = get_content()
. In this case the download button is display but in a new div on top of the year.
2- replace $listitems .= '<br /><div style="padding-left:'.$indent.'px" class="robots-nocontent"><cite>' . strip_tags($excerpt) . '</cite></div>';
by $listitems .= '<br /><div style="padding-left:'.$indent.'px" class="robots-nocontent"> echo $excerpt</div>';
then the page crashes.
If someone has the clue, please let me know.