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?

    Thanks

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

    change:

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

    to:
    <?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 : http://www.megaupload.com/?d=PYMRQVS9

    (/www/wp-content/plugins/mailpress/mp-content/themes/twentyten)

    Thanks.

    @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 : http://img4.hostingpics.net/pics/669738capturemailpress.jpg

    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:

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

    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:

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

    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 : http://abcmoteur.fr/actualites/classement-10-voitures-plus-cheres-du-monde-2011-forbes/ (doesn’t work)

    I haven’t logs in Mailpress settings.

    You can try to use this:

    <?php
    $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:
    http://codex.wordpress.org/Function_Reference/wp_get_attachment_image

    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: http://codex.wordpress.org/Function_Reference/wp_get_attachment_image

    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.