• Hi!
    On my server i got an updated version of WP, with a working theme.
    I just made a new one. The problem is that when i activate it, (or just preview it, via customize) it doesen’t render php script.
    For example: I use to link the css file al <link type=”text/css” href=”<?= get_stylesheet_directory_uri()?>/stylesheet.css”></script>, instead of rendering the path of stylesheet directory, it renders “<?= get_stylesheet_directory_uri()?>” like it is a string.
    This happens to all the linked file from my theme, but not to the plugins one.

    Any help will be appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Try href="<?php echo get_stylesheet_directory_uri()?>. And what’s the </script> for?

    Thread Starter biroplane

    (@biroplane)

    sorry the </script> was a writing mistake 😉
    Actually it works! 😀 😀 😀
    does it mean that php short_tags are not enabled?!

    Almost certainly. Generally, speaking it’s unwise to use short_tags as few servers support them these days.

    Thread Starter biroplane

    (@biroplane)

    Now it’s working!
    it was the short_tag variable set to of!
    Thank you!!!

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

The topic ‘Php is not rendering functions’ is closed to new replies.