<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>where filter for Category sections</title>
        <link>https://interactivetools.com/forum/forum-posts.php?where-filter-for-Category-sections-79157</link>
        <description></description>
        <pubDate>Tue, 13 Oct 2026 06:02:01 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;where-filter-for-Category-sections-79157" rel="self" type="application/rss+xml" />

                <item>
          <title>where filter for Category sections</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2232616#post2232616</link>
          <description><![CDATA[<p>Hi Dave,</p>
<p>I'm already using the "skip inside foreach" method, but sometimes depending on the task, it would be easier to do it with a where filter.</p>
<p>Thanks for explaining my options.</p>
<p>-aev-</p>
]]></description>
          <pubDate>Tue, 03 Dec 2013 14:18:08 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2232616#post2232616</guid>
        </item>
                <item>
          <title>where filter for Category sections</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2232580#post2232580</link>
          <description><![CDATA[<p>Hi aev, </p>
<p>There's no support for 'where' with getCategories() because any filtering would cause the hierarchy to not display correctly or have gaps in it.</p>
<p>Some alternatives would be to use the standard getRecords() instead and manually indent records based on $categoryRecord['depth'].</p>
<p>Or if you're displaying all the categories then move your where/filter code inside the foreach block and just skip records you don't want with something like:</p>
<p><code>&lt;?php<br />  &lt;?php echo $categoryRecord['_listItemStart'] ?&gt;<br /><br />  if (!contains('test', $categoryRecord['title'])) {  // skip records without "test" in title<br />    echo $categoryRecord['_listItemEnd'];             // print closing &lt;/li&gt; etc for this branch<br />    continue;  <br />  }<br />?&gt;</code></p>
<p>Alternatively, if you're just trying to display a specific branch, you could just load those with a direct query (just get all the records with a parentNum of 123, etc.</p>
<p>Let me know if one of those options will work for you.</p>]]></description>
          <pubDate>Mon, 02 Dec 2013 16:40:03 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2232580#post2232580</guid>
        </item>
                <item>
          <title>where filter for Category sections</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2232544#post2232544</link>
          <description><![CDATA[<p>Hi,</p>
<p>I get an error when trying to use the 'where' option for a Category section. How can I filter a Category section?</p>

<p>-aev-</p>
]]></description>
          <pubDate>Fri, 29 Nov 2013 01:14:57 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2232544#post2232544</guid>
        </item>
              </channel>
    </rss>
  