I am trying to sort entries ascending by date..
when I tell it to order by date the entries show but aren’t in any order..
then tell it to sort ascending by date they disappear
Here is the code.. I am referring to the code near the bottom under “Speaking Engagements”
<?php
/////////////////////////////
// Page variables
////////////////////////////
$pagerLocation = '{site_url}design/';
$cycleImages = '{site_url}design/';
$sidebarType = 'Left'; // Left, Right, None (case sensitive)
if($sidebarType == 'None') { $noSidebar = $sidebarType; } else { $noSidebar = ''; }
unset($sidebarIncludes[1]);
$sidebarIncludes[2] = 'email';
$sidebarIncludes[4] = 'backtolist';
$sidebarIncludes[5] = 'pastors';
?>
{exp:channel:entries channel="profile" status="Approved" entry_id="769" show_future_entries="yes" limit="1"}
<?
/////////////////////////////////////////////////////////////
// START CONTENT HERE
///////////////////////////////////////////////////////////////////////////////
?>
{embed=includes/doc-start-1 page_name="Phoenix First \\\\\\\\ {title}" page_description="" page_keywords=""}
<? //////////////////////////////////
// CUSTOM STYLES AND SCRIPTS
////////////////////////////////// ?>
<style type="text/css">
{embed=styles/new-profile-detail}
{if field_id_117 != ''}
#headerBg{width:100%; background:url({field_id_117}) center bottom no-repeat;}
.fixed { overflow:hidden; height:{field_id_118}px; padding:0; margin:0; width:100%; background:none; }
{/if}
</style>
{embed=includes/doc-start-2}
{embed=includes/nav}
{embed=includes/header-start}
<div class="fixed">
<a href="http://{facebook}%22id=%22content%22></a><h1{if" class="textHidden">[url=http://www.phoenixfirst.org/design/icons/facebookicon.png{if:else}<a]http://www.phoenixfirst.org/design/icons/facebookicon.png{if:else}<a</a> href="#">{/if}[/url]</span>
{if twitter != ''}<span class="profileSocial"><a href="http://twitter.com/{twitter}">http://www.phoenixfirst.org/design/icons/twittericon.png{if:else}<a href="#">{/if}</a></span>
{if field_id_125 != ''}<span><a href="http://{field_id_125}">http://www.phoenixfirst.org/design/icons/storeicon.png{if:else}<a href="#">{/if}</a></span></h3>
<p>602-867-7117 ext. {field_id_3} • <a href="mailto:{field_id_5}">Email {field_id_1} {field_id_7}</a></div> <br />
</p><h3>ABOUT {field_id_1} {field_id_7}</h3>
<p><div class="profileBio">{biography}</div><br />
</div><br />
<br />
{/exp:channel:entries}</p>
<p><div class="tbCol2"><br />
<div class="profileinfo"></p>
<h2>Speaking Engagements</h2>
<p> <br />
{exp:channel:entries channel_id="29" limit="5" status="Approved" show_future_entries="yes" orderby=”date” sort="asc"}<br />
{if field_id_158}{field_id_158}</p>
<p><strong>{field_id_159}</strong></p>
<p>{field_id_160}</p>
<p>{/if}<br />
{/exp:channel:entries}<br />
<br />
</div></div></div></div></div></p>
<p>{!-- CONTENT ENDS HERE ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// --}</p>
<p> </div><br />
<div class="contentDivs<?=$sidebarType;?>" id="contentSidebar<?=$noSidebar;?>"><br />
<div class="sidebarTopPadding"></div></p>
<p><br />
{!-- ////////////////////////////////<br />
// EMBED THE MINISTRY NAVIGATION, ETC<br />
///////////////////////////////////// --}</p>
<p><?<br />
if($sidebarType != 'None') {<br />
foreach($sidebarIncludes as $include) {<br />
echo '{embed=sidebar/'.$include.' sidebarType="'.$sidebarType.'"}';<br />
}<br />
}<br />
?></p>
<p></div><br />
<div class="clear"></div></p>
<p><br />
{!-- SIDEBARS END HERE //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// --}<br />
</p>
<p>{embed=includes/content-end} </p>
<p>{embed=includes/footer}</p>
<p>{embed=includes/doc-end}