Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2012-04-23 16:05:47
- brunodario
- Member
- From: Belo Horizonte, Brasil
- Registered: 2007-09-19
- Posts: 75
Get custom field value in php
I’m trying to grab the value of a custom field (using glz_custom_fields) in php instead of using <txp:custom_field> tag.
<txp:php>
your much appreciated help here :)
</txp:php>
An extra info for this question:
I want to perform a regex that will sanitize and outupt the custom field value as an url friendly namespace, similar to the one textpattern does.
Textpattern 4.4.1 and latest version of glz_custom_fields here.
Offline
#2 2012-04-23 16:39:15
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,477
Re: Get custom field value in php
custom_field(array('name' => 'Name'))
Offline
#3 2012-04-23 16:49:47
- brunodario
- Member
- From: Belo Horizonte, Brasil
- Registered: 2007-09-19
- Posts: 75
Re: Get custom field value in php
Thx GugUser!
Offline
Pages: 1