Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Display 5 most recent articles with same custom field value
husainhk wrote:
I have a similar need, but when I use the customfieldname attribute, I get the Textpattern’s notice that this attribute isn’t found!
Apologies if I’m misunderstanding, but you need to use the actual custom field name as the attribute. E.g.,
<txp:article_custom product="4" />
if you have a custom field named “product”. Check out the link suggested by Uli to make sure you’re using a valid custom field name.
Code is topiary
Offline
Re: Display 5 most recent articles with same custom field value
I am trying to get this snippet work:
<txp:article_custom section=“something” customfieldname=“my_field” limit=“10” form=“some-form” />
When I load the page, I get: Textpattern Notice: Unknown tag attribute: customfieldname
:(
Offline
Re: Display 5 most recent articles with same custom field value
Sorry guys, am laughing and am furious at my silliness!!
Should have used the actual custom field’s name as the attribute … whereas I was using ‘customfieldname’ literally :)
Offline