MyShadowSelf
Forum Replies Created
-
‘s me again
RE: number 2
Just found the exact same issue on my install. It’s not a CHMOD problem, I was foolish to jump to conclusions. If only you could forgive me…
The issue actually appears to be due to the muppets who I’m (and you’re) getting your feed from. There are spaces in the URL of the images, at least, there are spaces in the filename of the images. The space is then made valid by replacing it with %20 when the file is saved to your uploads directory and added to the post.
However, the browser request to the file converts that %20 back into a space
EG:
Image name: idiot webmaster.jpg
Saved as: idiot%20webmaster.jpg
Posted as: idiot%20webmaster.jpg
Requested as: idiot webmaster.jpgNow, this will be fixable, but it’ll take some core changes to the plugin (I expect) so it’ll not only take me a while to figure it out, but these changes will be wiped out on update. As such, I’ll probably submit them to the original developer when (and if) I manage to suss it out.
1: If you’re talking about the length of the posts in an archive list, you can use this code that works ok for me:
Add this function to wp-content/themes/YourTheme/functions.php:
function custom_trim_excerpt($length) { global $post; $explicit_excerpt = $post->post_excerpt; if ( '' == $explicit_excerpt ) { $text = get_the_content(''); $text = apply_filters('the_content', $text); $text = str_replace(']]>', ']]>', $text); } else { $text = apply_filters('the_content', $explicit_excerpt); } //$text = strip_shortcodes( $text ); // optional $text = strip_tags($text,'<div><strong><em><blockquote><img><a>'); $excerpt_length = $length; $words = explode(' ', $text, $excerpt_length + 1); if (count($words)> $excerpt_length) { array_pop($words); array_push($words, '[…]'); $text = implode(' ', $words); $text = apply_filters('the_excerpt',$text); } return $text.' <a href="'.get_permalink().'">Read Full Article and Comment »</a>'; }
in archive.php, find
the_content('<span class="read-more">Read full story »</span>');
change to:
echo custom_trim_excerpt(110);
where ‘110’ is the number of words you want to display.
That will cut all excerpts to ‘110’ words long with a link to read more.2: “Images are not displayed next to the posts”
Check your WPeMatico settings. All images should be set to cache in “settings”, check they’re not over-ridden per campaign. If they’re not being cached, make sure the caching directory os set to CHMOD 777.Hope this helps some.
Forum: Plugins
In reply to: [WPeMatico RSS Feed Fetcher] [Plugin: WPeMatico] formating link sourceI “believe” you could do this without editing any source code at all.
Login, got to WPeMatico -> ‘your campaign’
At the very bottom of the form you’ll find “Rewrite Option”
in the textarea headed “Origin” enter: ref=rss&
Leave the “Rewrite to” textarea empty, but check the checkbox.Hopefully, that will do what you want it to do, but I can’t guarantee. I haven’t tried it.
Good luck