Hello,
I have this code to fetch specific ads by ad number
osc_query_item("id=(145,146,250,266)");
But the problem is that it only fetches one ad. Why is not all the specific ads fetched?
Is there another better way or a specific job?
Thank you
There is nobody
I made this attempt
<?php osc_query_item("id=116").
osc_query_item("id=120").
osc_query_item("id=130").
osc_query_item("id=150").
osc_query_item("id=190").
osc_query_item("id=199").
osc_query_item("id=250");
if( osc_count_custom_items() == 0) { ?>
<p class="empty"><?php _e('No Listings', 'epsilon') ; ?></p>
<?php } else { ?>
But the problem is that the last ad is fetching this code only
osc_query_item("id=250");
The rest is not seen
You are missing the while loop, without loop you can only get the last item
<?php if (osc_count_custom_items() > 0) { ?> <div class="latest_ads"> <?php while (osc_has_custom_items()) { ?> ......... <?php } ?> </div> <?php } ?>
You are missing the while loop, without loop you can only get the last item
<?php if (osc_count_custom_items() > 0) { ?> <div class="latest_ads"> <?php while (osc_has_custom_items()) { ?> ......... <?php } ?> </div> <?php } ?>
Thanks for your reply
But this code is complete, same problem
<?php osc_query_item("id=116"). osc_query_item("id=120"). osc_query_item("id=130"). osc_query_item("id=150"). osc_query_item("id=190"). osc_query_item("id=199"). osc_query_item("id=250"); if (osc_count_custom_items() > 0) { ?> <div class="latest_ads"> <?php while (osc_has_custom_items()) { ?> ......... <?php } ?> </div> <?php } ?>
Tried it this way, same problem
<?php osc_query_item("id=116,120,130,150,190,199,250");
if (osc_count_custom_items() > 0) { ?>
<div class="latest_ads">
<?php while (osc_has_custom_items()) { ?>
.........
<?php } ?>
</div>
<?php } ?>
Only one ad is fetched
I made more than one attempt
Unfortunately, only one ad is fetched
Is it possible that the script is not supported?