Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

vinoth06 on "Function takes more precedence over $content"

$
0
0

Hi,

Am working on $content to append some content from function. So I have added like this,

function one($content){
return $content.functionname();
}

add_filter('the_content','one');

functionname(){echo 'hello';}

Am getting output as
hello then only the content but actually it should be content then hello.

So functions take more precedence over the $content. Could you please give some solution to display like content and then function operations.


Viewing all articles
Browse latest Browse all 8245

Trending Articles