WordPress.org

Support

No PHP?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Yes, I agree, that would have solved my problem too. There’s only like twenty template tags available and I’d like to be able to just insert PHP to achieve something like %post_thumbnail_url%. But I can’t do so, because it only supports HTML.

    I don’t know what you trying to achieve, but it’s easy to implement processing of PHP from templates. That is just security hole, but never mind 🙂

    Open file blog-in-blog.php, find line return $template; (line 539) and insert above that line code:

    ob_start();
    eval("?>$template<?php ");
    $template = ob_get_contents();
    ob_end_clean();

    Cheers

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘No PHP?’ is closed to new replies.
Skip to toolbar