Passing vars to component
-
I have a single page that includes a page-title component using “titan_get_component( ‘page-title’ )” In this single page, I pull a custom field from the post that this single is meant to display. I assign that custom field value to a php var, but if I try to reference that variable from within the ‘page-title’ component template, it is empty. What is the proper way to pass that variable to the component?
- The topic ‘Passing vars to component’ is closed to new replies.