2017-10-17, 06:38:52
> You don't need to do that ob_start
I had the problem, that the output of the function was printed to early ...
what means the "false" - see, I've some php-voids ...
Thank you! Now its running - for the template-file I made this:
best, bell
I had the problem, that the output of the function was printed to early ...
what means the "false" - see, I've some php-voids ...
Thank you! Now its running - for the template-file I made this:
PHP Code:
if (function_exists('get_page_meta_keywords')) {
$keywords = get_page_meta_keywords(false);
if ($keywords) {
echo "<!-- keywords -->
<p class=\"tags\">Marker: \n";
$keywords_array = array_map('trim', explode(',',$keywords));
$nextRow = FALSE;
$i = 0;
while ($i < count($keywords_array)) {
if ($nextRow) { print ", \n"; } // a spacer
$nextRow = TRUE;
$v = sprintf(strtr($keywords_array[$i], " ", "_"));
echo "<a href=\""; echo get_site_url(); echo "index.php?id=search&tags=".strtolower($v)."\" class=\"tag\">".strtr($v, "_", " ")."</a>";
$i++;
}
echo "\n</p>\n";
}
}
best, bell