2012-02-29, 23:55:49
Angryboy Wrote:mvlcek Wrote:You can check and display anything with PHP ;-), approximately like that:I've been waiting forever to find out how to do this :-D Thank you once more, mvlcek!
Code:<?php
$tags = return_special_field('tags');
foreach ($tags as $tag) {
if (substr($tag,0,1) != '_') {
$link = find_url('your-search-page').'?tags='.urlencode($tag); // you might want to add the _special_xxx tag
echo '<a href="'.htmlspecialchars($link).'">'.htmlspecialchars($tag).'</a> ';
}
}
?>
You can also strip the array with array_filter() if you want it intact for use later on.
Code:
psuedocode
$filtered_tags = array_filter( return_special_field('tags'), function ($tag) { return (substr($tag,0,1) != '_'); });