WordPress allow PHP tags in html editor - surrounding html tags with if else statement -


i have searched hours , can't make work.

the plugin supposed let type [php] , [/php] tags surrounding php code allows function in tinymce html editor.

it works this:

[php] echo "test"; [/php] 

but doesn't work when try break code , surround html:

[php] if ($_request['tabx'] == "1") { [/php]  <div>[schoolsearch location_title="" lat="" lng" distance="3" groupby="gradelevel" output="table"]</div> [php] } [/php] 

i'm trying accomplish doing if/else statement inside html editor , way can think of using these php tags. ideas?

how about

<div>[php] if ($_request['tabx'] == "1")      { echo "[schoolsearch location_title='' lat= lng='' distance='3' groupby='gradelevel' output='table']"; } [/php] </div> 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -