I have created an index template in MT. In it I'm trying to mix MT tags and PHP code. When I alternate one with the other, everything's fine, but when I'm trying to use PHP variables as parameters within MT tags, that doesn't work. Here's an example:
CODE
<MTEntries sort_order="descend" days="<?=$DayCount?>">
($DayCount has been defined beforehand.) What's processed first, PHP or MT tags? It's a php page so I assume PHP has the priority here.
Alternatively I tried to generate HTML code with MT tags included through echo or print but that didn'twork either. I tried to escape quotes (\") but that didn't help.
Thanks a lot to anyone who can explain what's wrong with me. I can't figure it out.