roog Wrote:@yojoe: see the function nm_get_url() in news_manager/functions.php.There's something odd going on with functions.php -> L. 102 -> $url .= $query . '/';
To have a working url with website/page/posts/slug instead of website/pageposts/slug I have to change it to $url .= '/';
Using rewrite rules I wasn't able to fix mine problem.
You should add a conditional, to add $query only on index page, while showing slugs on other pages shouldn't have it.
Maybe it's only me, so I can't be sure if it happens to other people.
btw. I want to show news on a "NEWS" page, while on index page I'd like to show last news excerpt (or even 3 in a newsticker box). Basically below function added to sidebar.php is working:
Code:
function nm_list_recent_excerpt() {
global $NMRECENTPOSTS, $NMSHOWEXCERPT;
$posts = nm_get_posts();
if (!empty($posts)) {
$posts = array_slice($posts, 0, $NMRECENTPOSTS, true);
foreach ($posts as $post) {
nm_show_post($post->slug, $NMSHOWEXCERPT == 'Y');
}
}
}
But I'd like to get a bit shorter excerpts, than the value set in options, and I don't know how to override $NMEXCERPTLENGTH variable
btw. I always experience a strange behaviour of this plugin on localhost. Sometimes I delete a news, and afterpage refresh I get a duplicated version of last news, or deleted news appear again (isn't deleted at all).
Would you consider a consistency check between physically existing news files, and their entries in data/other/news_manager/posts.xml file ?
Addons: blue business theme, Online Visitors, Notepad