[field url],[field slug] does not work in [loop]…[/loop]
-
Tis is my code
<?php start_short(); ?>
[for each=’cat_bernapokhadrumner’ term=’berner’]
[loop type=’cpt_bernapoxadrumner’ count=’5′]
<tr>
<td>[field berner-1]</td>
<td>[field berner-2]</td>
<td>[field berner-3]</td>
<td style=”width: 83px !important”>[field berner-5]</td>
<td>[field berner-6]</td>
<td>View?</td>
</tr>
[/loop]
[for-else]
No category found
[/for]
<?php end_short(); ?>I wrote it inside .php file. But it does not work correctly.
In the result it echo(display) the page URL where code did wrote (https://demo-test.ga/bernapokhadrumner/)I try instead of [field url] use [field slug],[content field=’url’] but no any result.
Please help me. And sorry for my not better english:)
https://www.ads-software.com/plugins/custom-content-shortcode/
- The topic ‘[field url],[field slug] does not work in [loop]…[/loop]’ is closed to new replies.