Using php code in the templates

WP-Filebase Pro Forums Templates Using php code in the templates

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2883
    briancama
    Participant

    I am attempting to ensure that in the default template the file is only shown if the filename matches the current users assigned file name designation. I’ve added my php code to add the appropriate if statement comparing the two values, but I receive a parse error and most of the code seems commented out.

    #3059
    Steven
    Participant

    +1, When i add php code it appears commented. If you open and close php tags in every line, they dont show up as commented.

    
        <?php echo $file->get_tpl_var('file_display_name'); ?>
    
        <?php echo $file->get_tpl_var('file_description'); ?>
    

    But not even a single echo works

    • This reply was modified 7 years, 6 months ago by Steven.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.