• Resolved mgali002

    (@mgali002)


    I created a new text field from the administrative panel in Flex called “iframe”. I want to show it in pshow_position2 by modifying the file property_show/default.php. How is the name of the new variable to be able to show it? For example <? php echo $iframe; ?>

    Thanks

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Realtyna

    (@realtyna)

    Hi,

    Thanks for your feedback.

    You can var_dump the $this->wpl_properties['current']['raw'] variable. It’s an array holding raw data of property. You can find the data that you want to print in this array and then you’re able to simply print it.

    Do not forget to override the property_show/default.php file into your child theme otherwise your customization will remove after next update of WPL.

    Thread Starter mgali002

    (@mgali002)

    Thank you very much for the response.

    I still can not see the value. The name of the variable created is “Iframe” in “basic details”. I do this:

    $iframe = isset($this->wpl_properties[‘current’][‘materials’][‘Iframe’][‘value’]) ? $this->wpl_properties[‘current’][‘materials’][‘Iframe’][‘value’] : ”;

    echo $iframe;

    But I don’t print anything. What am i doing wrong?

    Thank you

    Thread Starter mgali002

    (@mgali002)

    Hi,

    I have found the name of the field in the database.

    $ iframe = isset ($ this-> wpl_properties [‘current’] [‘materials’] [‘field_3009’] [‘value’])? $ this-> wpl_properties [‘current’] [‘materials’] [‘field_3009’] [‘value’]: ”;

    Solved

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Display ni field by php’ is closed to new replies.