<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>how to - Permalink from imported category included in code generator</title>
        <link>https://interactivetools.com/forum/forum-posts.php?how-to---Permalink-from-imported-category-included-in-code-generator-82264</link>
        <description></description>
        <pubDate>Mon, 15 Jun 2026 01:16:01 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;how-to---Permalink-from-imported-category-included-in-code-generator-82264" rel="self" type="application/rss+xml" />

                <item>
          <title>how to - Permalink from imported category included in code generator</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2244786#post2244786</link>
          <description><![CDATA[<p>Thank you! That is exactly what I needed. I was trying to do similar, but had the ",1" on the wrong side of the parentheses. I just don't write PHP enough to ever get even passably good at it... or even figure out what to search for sometimes. So, this is is much appreciated and saved me a lot of frustration. </p>]]></description>
          <pubDate>Wed, 10 Jun 2020 13:58:26 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2244786#post2244786</guid>
        </item>
                <item>
          <title>how to - Permalink from imported category included in code generator</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2244785#post2244785</link>
          <description><![CDATA[<p>Hi Josh,</p>
<p>Glad to hear it helped.</p>
<p>This should work if you're looking to skip the first item of an array:</p>
<pre class="language-php"><code>&lt;?php foreach (array_slice($art_categoriesRecords,1) as $record): ?&gt;</code></pre>
<p>Best,<br />Steve</p>]]></description>
          <pubDate>Wed, 10 Jun 2020 13:40:50 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2244785#post2244785</guid>
        </item>
                <item>
          <title>how to - Permalink from imported category included in code generator</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2244781#post2244781</link>
          <description><![CDATA[<p>The solution in the linked post worked well. </p>
<p>I added this: </p>
<pre class="language-php"><code>// load records from 'art_categories'
list($art_categoriesRecords, $art_categoriesMetaData) = getRecords(array(
'tableName' =&gt; 'art_categories',
'where' =&gt; '`name` IN('.mysql_escapeCSV($artwork_imagesRecord['category:labels']).')',
'loadUploads' =&gt; false,
'allowSearch' =&gt; false,
));</code></pre>
<p>To use this: </p>
<pre class="language-php"><code>&lt;?php foreach ($art_categoriesRecords as $record): ?&gt;
     &lt;a href="/&lt;?php echo htmlencode($record['permalink']) ?&gt;" target="_self"&gt;&lt;?php echo htmlencode($record['name']) ?&gt; 
&lt;?php endforeach ?&gt;&lt;/a&gt;</code></pre>
<p>Now, I just have one semi-related issue: </p>
<p>The foreach outputs the array of "All, Paintings", for example. However, all of the artwork, whether drawings or print making, etc, is in the 'All category. How can I always skip the first key in this array so it never prints 'All'? </p>
<p>Skipping the first item seems like it might be really simple, but I've tried using an array_slice and various if statements, but my novice self just can't figure it out. </p>
<p>Thanks for any further guidance. </p>]]></description>
          <pubDate>Tue, 09 Jun 2020 12:19:40 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2244781#post2244781</guid>
        </item>
                <item>
          <title>how to - Permalink from imported category included in code generator</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2244770#post2244770</link>
          <description><![CDATA[<p>Thanks, guys. At a glance, that looks right. I'll be giving it a try next week and will post here about it. </p>

<p>~ Josh</p>]]></description>
          <pubDate>Fri, 05 Jun 2020 07:24:21 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2244770#post2244770</guid>
        </item>
                <item>
          <title>how to - Permalink from imported category included in code generator</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2244767#post2244767</link>
          <description><![CDATA[<p>Hi Josh,</p>
<p>The forum post link that Steve posted should have everything you need to get the results you are after.</p>
<p>Can you review and let us know if you have any questions about it that we can help with?<br /><br /></p>]]></description>
          <pubDate>Thu, 04 Jun 2020 15:45:06 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2244767#post2244767</guid>
        </item>
                <item>
          <title>how to - Permalink from imported category included in code generator</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2244765#post2244765</link>
          <description><![CDATA[<p>Hello,</p>
<p>Sounds like a similar scenario as this post:<br /><a href="https://www.interactivetools.com/forum/forum-posts.php?postNum=2244369#post2244369" rel="nofollow">https://www.interactivetools.com/forum/forum-posts.php?postNum=2244369#post2244369</a></p>
<p>Referencing that post, essentially the "Restaurants" would be your "Artwork" records and the "Cuisines" would be your "Categories" records.</p>
<p>Hope this helps!</p>
<p>Best,<br />Steve</p>]]></description>
          <pubDate>Thu, 04 Jun 2020 07:16:48 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2244765#post2244765</guid>
        </item>
                <item>
          <title>how to - Permalink from imported category included in code generator</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2244764#post2244764</link>
          <description><![CDATA[<p>Hello. I hope I can explain this well. </p>
<p>I have a multi record editor called Artwork. In it, I import a list of categories from another multi record using 'Get options from database'. The category records have a permalink. Everything there works fine and I have a sortable gallery with permalinks when the categories are sorted. Then, if you click on an image from Artwork, you get the detail page of that image. Pretty straight forward and common. </p>
<p>My struggle is on the detail page, itself. Under the artwork image I list out the categories that artwork is in. I would like those categories to be clickable and then the user can get back to the list page and see all the artwork in the categories. However, I can't figure out how to import the category permalink to the artwork detail page in order to make it a link back to the category page.</p>
<p>Image attached for visual reference. </p>
<p>Any advise is appreciated.</p>

]]></description>
          <pubDate>Wed, 03 Jun 2020 13:20:21 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2244764#post2244764</guid>
        </item>
              </channel>
    </rss>
  