|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
mymaterick Smarty n00b
Joined: 21 Oct 2011 Posts: 3
|
Posted: Tue Feb 23, 2021 10:29 pm Post subject: Help on filtering |
|
|
I have some code that lists all my categories, I would like to amend it to only list certain ones containing a word in the category name.
<div>{if is_array($ARRGETFLORISTCATEGORY)}<div class="fnzh1">Click region for florist areas</div><div class="florists lh"><ul class="fnzlink">{foreach from=$ARRGETFLORISTCATEGORY name=FloristList item=vFloristList key=kFloristList}<li><a href="https://aiustra.net/florists/{$vFloristList.category_url|add_seo_url_text}">{$vFloristList.category_name}</a></li>{/foreach}</ul></div>{/if}
how can I change the above code to filter the results that include the word "Hospitals" and just display those categories? TIA Rick |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|