excerpt in newsletters

34 views
Skip to first unread message

carlo1000

unread,
Dec 20, 2010, 7:26:29 AM12/20/10
to MailPress
hi
in a fresh mailpress installation I can send only the full text of an
article in the newsletter.
But I want only send the excerpt. I am using twentyten and I am a php-
baby.

Please give me an example, what I must change.

regards Karl

andré renaut

unread,
Dec 20, 2010, 9:41:19 AM12/20/10
to mail...@googlegroups.com
in mailpress/mp-content/themes/twentyten/_loop.php

change this line :

<?php $this->the_content(  __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' )  ); ?>

by

<?php the_excerpt(); ?>

2010/12/20 carlo1000 <adw...@menzel-lichtundwohnen.de>
--
=== Please Donate ! https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=andre%2erenaut%40gmail%2ecom&lc=US&item_name=MailPress&item_number=gg&amount=5%2e00&currency_code=EUR&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHostedGuest ===

You received this message because you are subscribed to the Google
Groups "MailPress" group.
To post to this group, send email to mail...@googlegroups.com
To unsubscribe from this group, send email to
mailpress+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/mailpress?hl=en



--
Pensez à l'environnement avant d'imprimer ce message.
Please, think about the environment before printing this message.

carlo1000

unread,
Dec 20, 2010, 2:54:09 PM12/20/10
to MailPress
Hi
thanks for the answer.

But now mailpress does not send. The "wheel" before "sending" is
running and running (Mailtest)

This is now the part of my file:
<div <?php $this->classes('nopmb'); ?>>

<?php the_excerpt(); ?>
<!-- <?php $this->the_content( __( 'Continue reading <span
class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?> -->


<?php wp_link_pages('before=<div ' . $this->classes('page-link',
false) . '>' . __( 'Pages:', 'twentyten' ) . '&after=</div>') ?>
</div><!-- .entry-content -->

whats wrong?

Regards
Karl

Reply all
Reply to author
Forward
0 new messages