• Resolved atomizer

    (@atomizer)


    i don’t know if any of these messages are being posted as they’re not showing up in the support form

    anyway…

    would be great if variables could be used inside of php code, which doesn’t seem possible at the moment

    like
    echo 'hi %%name%%
    then the block would be like
    `[contentblock name=”geek” id=16 img=php.png]

    https://ww.wp.xz.cn/plugins/global-content-blocks/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,
    I don’t see why this would not work. Attributes are processed before the PHP code is evaluated, so this should work as intended. I am not able to test this at the moment, but will look into it in a few hours.

    Thread Starter atomizer

    (@atomizer)

    hi v3r50r

    it DOES work!
    i was writing the php code incorrectly!

    LOL – this will greatly cut down on the number of content blocks i have 🙂

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

The topic ‘feature req: allow variables in php code’ is closed to new replies.