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">→</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.
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…