First off, I just want to say that PHP is something I don't understand that well. That being said:
Is there a way to define a custom search within a PHP string?
Example: <?php getSearchWords("featured"); ?>
What I am trying to do is upon arrival to the index.php page a search result of the albums with the tag "featured" all show up. Make sense? Any help would be appreciated!
Comments
to do such things I use an unused field like 'location' and fill in on the admin page 'featured' as location for the album.
within the loop on the album php I check with getAlbumPlace() and only the albums which have 'featured' get printed
`<?php while (next_album()): ?>
<?php $check = getAlbumPlace();<br />
$check = substr_count($check,"featured");
if ($check == 1) { ?>
//do your regular album things here
<?php} else {;}?>
<?php endwhile; ?>`