View Single Post
Old 12-06-2007, 01:44 PM   #22 (permalink)
Matt83
The Contributor
Upcoming Programmer 
 
Matt83's Avatar
 
Join Date: Oct 2007
Location: Argentina
Posts: 72
Thanks: 18
Matt83 is on a distinguished road
Default

Quote:
Originally Posted by d4v1d View Post
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); 
__________________
http://www.mattvarone.com
Matt83 is offline  
Reply With Quote