So, I searched and found some messages that bother me that I want, but it still does not work. This post especially seemed the closest to what I was trying to achieve, and I built my code: http://expressionengine.com/forums/viewthread/168142/
Explain I have a series of entries, each entry is assigned to only one category. I would like to list these categories and under each category list entries with one of my custom fields. For instance:
So, here is my code in its current form, which lists the categories, but none of the entries spit out:
{exp:channel:categories channel="faq-question" style="linear"} <section class="faq-category-container closed"> <h1 class="faq-category-header"><a href="#">{category_name}</a></h1> <dl> {exp:query sql=" SELECT title, url_title AS urlt, cat_id FROM exp_channel_titles NATURAL JOIN exp_category_posts WHERE channel_id = '7' AND cat_id = '{category_id}' ORDER BY title ASC" } {embed="jazz-camp/faq-cat-list" faqlink="{urlt}"} {/exp:query} </dl> </section> {/exp:channel:categories}
And the inline template that it refers to:
{exp:channel:entries channel="faq-question" url_title="{embed:faqlink}"} <dt>{title}</dt> <dd> {faq_content} </dd> {/exp:channel:entries}
Any help would be appreciated!
source share