Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
are there examples for keywords-/tags-using - with different plugins?
#7
> 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:
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
Reply


Messages In This Thread
RE: are there examples for keywords-/tags-using - with different plugins? - by Belletage - 2017-10-17, 06:38:52



Users browsing this thread: 2 Guest(s)