We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum
Accessing a field directly in PHP
I use PHP includes for my headers and footers, and I'm currently defining the <title> tag like this:
<? define('PERCH_TITLE',perch_pages_title(true)); ?>
I have a "gallery" of sorts that is pulling items based on slugs to display, like this:
<? $slug = $_GET["w"]; $opts = array( "page"=>"/weddings.php", "template"=>"wedding_item.html", "filter"=>"slug", "match"=>"eq", "value"=>$slug ); ?> perch_content_custom("Wedding Items", $opts);
How can I access the "title" field inside the filtered item directly for the define('PERCH_TITLE')?
Want to reply to this thread?Login with Perch