display excerpt under title in listing
-
First of all thank you for your great plugin!
I got everything to work as I liked and was able to adapt styling.
Now I want to add the page excerpt under each title, could this be possible?
I am thinking of adding a line in a-z-linstin.php after the_permalink(); ?>”><?php $a_z_query->the_title(); ?>I tried already with no luck:
<?php while ( $a_z_query->have_items() ) : $a_z_query->the_item(); $a_z_query->get_the_item_object( ‘post_excerpt’ ); $myExcerpt = get_the_excerpt(); ?> <li> <a href=”<?php $a_z_query->the_permalink(); ?>”><?php $a_z_query->the_title(); ?></a> <a href=”<?php $a_z_query->the_permalink(); ?>”><?php echo $myExcerpt; ?>’Untertitel'</a> <a href=”<?php $a_z_query->the_permalink(); ?>”><?php $a_z_query->get_the_item_object(); ?>’Untertitel'</a> </li> <?php endwhile; ?>Maybe you have a better idea …
Thank you in advance!
Christian
The page I need help with: [log in to see the link]
The topic ‘display excerpt under title in listing’ is closed to new replies.