12-06-2007, 01:44 PM
|
#22 (permalink)
|
|
The Contributor
Join Date: Oct 2007
Location: Argentina
Posts: 72
Thanks: 18
|
Quote:
Originally Posted by d4v1d
I think i found the problem for no value being passed... there is a second function calling the previous function:
PHP Code:
function pc_generate($content) {
$content = str_replace("<!-- postsbycategory -->", posts_by_category(), $content);
return $content;
}
I'm not entirely sure how everything ties up...
|
ahh i missed that  . Good find
Then i would suggest to modify that function to:
PHP Code:
function pc_generate($content,$number) {
$content = str_replace("<!-- postsbycategory -->", posts_by_category($number), $content);
return $content;
}
And simply call:
PHP Code:
pc_generate($theContentVariable,4);
|
|
|
|