Support » Plugin: MailPress » [Plugin: MailPress] Use of the_excerpt();

  • Hi,

    First of all, congratulations for this magnificent plug-in!

    I’, trying to use the the_excerpt function instead of the the_content, bit the emails don’t show nothing… is there any solution for it?


Viewing 15 replies - 1 through 15 (of 17 total)
  • You can use the_excerpt() by changing wp-content/plugins/mailpress/mp-content/themes/your-theme-name/_loop.php


    <?php $this->the_content( __( '(more...)' ) ); ?>

    <?php the_excerpt(); ?>

    Hope this helps someone…



    Hi, herbie4. I would use excerpt with Mailpress but I didn’t fin “<?php $this->the_content( __( ‘(more…)’ ) ); ?>” in my _loop

    My _loop :



    @Abcmoteur-> it is on line 36 of your file:
    <?php $this->the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
    Just change it as stated in my earlier post. Good luck.



    Many thanks!

    I still have several queries :

    Thanks again herbie4. 🙂

    @Abcmoteur-> the delete part is not clear lookt like it comes from the mailpress header file, maybe some css in there

    for the image something like this should work:

    <?php if(has_post_thumbnail) $this->the_post_thumbnail('','large'); ?>

    put it on line 17 in _loop.php

    I hope this helps you…



    When I add your code, mails aren’t send. :s

    You can try to switch on your wp error reporting to get the details on the error.
    You can try just using:

    <?php $this->the_post_thumbnail('','large'); ?>

    And make sure the post has a thumbnail!
    I haven’t tested this but wp template tags should work in mp loop.



    I tried for this : (doesn’t work)

    I haven’t logs in Mailpress settings.

    You can try to use this:

    $args = array(
        'width' => null,
        'height' => null,
        'css' => '',
        'parent_id' => '',
        'post_id' => '',
        'filename' => '',
        'return_html' => true
    $this->wp_get_post_image($args); ?>

    Maybe you have to use the $this-> or maybe not. Not sure.
    I didn’t test it. Hope it works for you…



    Unfortunately, it doesn’t work.

    I try this:

    br />
    	<?php $this->the_image(array('unit' => 'px', 'max_width' => 700, 'force_max_width' => 0)); ?>
    <br />
    <?php the_excerpt(); ?>

    But it is a small image and how can I center image.

    Maybe you should set force_max_width’ => 1?

    Or you could try using this:

    Center the image with html or css.



    Anything change with “1”.

    I put :

    <br />
    	<div style="text-align: center;"><?php $this->the_image(array('unit' => 'px', 'max_width' => 700, 'force_max_width' => 1)); ?></div>

    Its work! 🙂 BUT, how can I have a large image ?

    Are you sure the original image is large already?
    Otherwise maybe you can look up how to set the_image() parameters.



    Yes, its a large image (800px).

    I try to change something but its not good. I don’t know to do.

    I guess the_image() is not a wordpress function so I could not find any documentation on it. Maybe this is a function from a plugin you installed?
    If you use the wordpress function to get the image you can find the documentation here:

    Hope it works out…

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘[Plugin: MailPress] Use of the_excerpt();’ is closed to new replies.