php code dosen't work in tag UL
I see a problem, when I write code into tag `<ul>` interpretation stop checking it .
For example – it's OK
<div class="team-list">
<?php while (have_rows('repeater')) : the_row(); ?>
<div class="team-elem">
<?php if ($link = get_sub_field('link_r')): ?>
<?php am_the_link($link, ['class' => 'team-elem-title', 'rel' => 'nofollow']); ?>
<?php endif; ?>
<?php am_the_sub_field('description_r', '<div class="team-elem-descr">', '</div>'); ?>
<?php if( $img_r = get_sub_field('img_r')) { ?>
<div class="team-elem-image">
<?php am_the_fly_img($img_r); ?>
</div>
<?php } ?>
</div>
<?php endwhile; ?>
</div>
but when I write
<ul class="team-list">
<?php while (have_rows('repeater')) : the_row(); ?>
<div class="team-elem">
<?php if ($link = get_sub_field('link_r')): ?>
<?php am_the_link($link, ['class' => 'team-elem-title', 'rel' => 'nofollow']); ?>
<?php endif; ?>
<?php am_the_sub_field('description_r', '<div class="team-elem-descr">', '</div>'); ?>
<?php if( $img_r = get_sub_field('img_r')) { ?>
<div class="team-elem-image">
<?php am_the_fly_img($img_r); ?>
</div>
<?php } ?>
</div>
<?php endwhile; ?>
</ul>
It's crushed. https://monosnap.com/file/8IcSGVzNjpTEZbMX1lBS7EqjzyOkxU I can't use shortcuts or some features of Live Templates PHP. It's problem only for tag <ul> with <ol> evresing ok
Can someone help ?
Please sign in to leave a comment.
Hi there,
Please show what you have at “Settings/Preferences | Editor | Language Injections”. I'm interested in entries with “IDE” or “Project” in the “Scope” column.
Right now it looks like you have (accidentally) injected some language into all UL tags.
Thanks It's help