WordPress.org

Ready to get started?Download WordPress

Forums

Blog-in-Blog
No PHP? (3 posts)

  1. VortexSpin
    Member
    Posted 1 year ago #

    I need to be able to use PHP functions inside the html snippet. Looks like that isn't possible?

    http://wordpress.org/plugins/blog-in-blog/

  2. rbtvance
    Member
    Posted 1 year ago #

    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.

  3. urkekg
    Member
    Posted 11 months ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.