I have some javascript that hides entries based on the lack of certain content.
The code looks like this:
[removed]
$(document).ready( function() {
$('#content #main .wrap .col .feature_block').each(function(index, el) {
if ($(el).children(".feature_block_content").children().size() == 0 )
$(el).hide();
});
});
[removed]It works great until I try to set orderby=“date”, sort=“desc” & limit=“2” then things get weird. The limit makes no entries appear at all.
The template code looks like this:
{exp:channel:entries
channel="tenants"
disable="categories|category_fields|member_data|pagination|trackbacks"
cache="yes"
refresh="1440"
orderby="date"
sort="desc"
limit="2"
dynamic="off"
}
<div class="feature_block clear">
{exp:imgsizer:size src="{logo}" width="130"}
{sized}
{/exp:imgsizer:size}
<div class="feature_block_content">
{exp:channel:entries
channel="offers"
disable="categories|category_fields|member_data|pagination|trackbacks"
cache="yes"
refresh="1440"
orderby="date"
sort="desc"
dynamic="off"
}
{if "{embed:tenant_id}" == "{related_entries id='offer_tenant'}{entry_id}{/related_entries}"}
<a href="http://{title_permalink=%27offers/detail%27}" class="">{title}</a>
{/if}
{/exp:channel:entries}
</div>
</div>
{/exp:channel:entries}Any ideas what could be going on here?
Thanks for any help.