Forum

Thread tagged as: Question, Problem

Return attributes instead of printing

Is there any way to return attributes with perch_page_attribute(), rather than printing it to the screen?

David Newton

David Newton 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Sure:

$output =  perch_page_attribute('foo', array(), true);

Awesome, thanks!