I’m not sure if this can be done, or if I’m somehow complicating matters.
I’m trying to use just one template, for one weblog, but only show posts based on a specified category. Trouble is, I’d like the category number to change with a custom field called “category-number”. But it doesn’t seem to work if I add a custom field to the weblog tag. I’m using EE 1.7.1.
For instance, this works:
{exp:weblog:entries weblog="courses" orderby="date" sort="desc" limit="1" disable="member_data|trackbacks" category="12" dynamic="yes"}
{body-courses}
{extended}
{/exp:weblog:entries}
This does not work:
{exp:weblog:entries weblog="courses" orderby="date" sort="desc" limit="1" disable="member_data|trackbacks" category="{category-number}” dynamic=“yes”}
{body-courses}
{extended}
{/exp:weblog:entries}
I’ve tried turning off dynamic, but that did not change anything. So does that mean I can’t use a custom field in the weblog entries tag? Is there another way to do this?
To reiterate, my goal is to use just one template for a weblog, but be able to show only posts associated with a specific category, which I assume I need to assign in the post itself. So the category needs to be able to change, but still display in the one template.