4 Things You Probably Don’t Know About ExpressionEngine Channel Entries

1.) Related Categories Mode

This options allows you to output other entries with the same category. It is to be used on only single entry pages. There are other ways to accomplish this but if it’s available why not use it?

<code>
{exp:channel:entries related_categories_mode=“yes” custom_fields=“yes” member_data=“yes”}
<h2>{title}</h2>
{body}
<div class=“posted”>Posted by {author} on {entry_date format=‘%m/%d’} at {entry_date format=‘%h:%i %A’}</div>
{/exp:channel:entries}
</code>

2.) Order by Date Field (Custom)

Natively you CANNOT display entries based on a custom date field.You can use the entry date and expiry date but not a custom field. Luckily the guys at Solspace have a FREE add-on that does just that. We have used it on a few event related sites and it’s works well.

3.) Disabling Relationships

You should be disabling as many things as you can to get maximum performance from your ExpressionEngine sites. Relationships is a little used parameter to speed things up further. Thanks to Solpace for this tip.

<code>{exp:channel:entries channel=“news” limit=“10” disable=“categories|category_fields|member_data|relationships”}
<h2>{title}</h2>
{body}
{/exp:channel:entries}</code>

4.) Channel Entries within Channel Entries

You cannot have an channel entries tag within a channel entries tag. The below will not work.

<code>{exp:channel:entries channel=“meat“ limit=“10“ search:cf_meat_body=“steak“ }
{title}
…..OTHER Custom Fields
{if no_results}
    <h1>There are no results but please see these entries</h1>
    {exp:channel:entries channel=“meat“ limit=“10“ }
        {title}
        ….OTHER Custom Fields
    {/exp:channel:entries}
{/if}
{/exp:channel:entries}</code>

Embeds

Embeds will work

<code>{exp:channel:entries channel=“meat“ limit=“10“ search:cf_meat_body=“steak“}
{if no_results}
     <h1>There are no results but please see these entries</h1>
     {embed=“templategroup/embedname“}
{/if}
{title}
...OTHER Custom Fields
{/exp:channel:entries}</code>

In embed template:

<code>{exp:channel:entries channel=“meat“ limit=“5“}
{title}
…..OTHER Custom Fields 
{/exp:channel:entries}</code>

The best way is to use a Low Variable

<code>{exp:channel:entries channel=“tester“ limit=“1“ search:cf_meat_body=“steak“}
{if no_results}
<h1>There are no results but please see these entries</h1>
{exp:low_variables:parse var=“lv_embed“}{/if}
{title}
...OTHER Custom Fields
{/exp:channel:entries}</code>

In low variables template:

<code>{exp:channel:entries channel=“meat“ limit=“5“}
{title}
…..OTHER Custom Fields 
{/exp:channel:entries}</code>

Hope you found that useful, what are your channel entries tips?

Comments

Comment: 1
Marvinhub , Oct 24, 2017

g http://buyviagrabtc.com viagra covered by insurance <a href= http://buyviagrabtc.com >viagra coupons</a> indeed <a href=http://buyviagrabtc.com>buy viagra online</a> buy viagra cheaply

Comment: 2
Marvinhub , Oct 24, 2017

d http://essaywritingservicebtc.com trusted essay writing service <a href= http://essaywritingservicebtc.com >top essay writing services</a> waited <a href=http://essaywritingservicebtc.com>college paper writing service</a> write my essay

Comment: 3
Marvinhub , Oct 24, 2017

a http://buyviagrabtc.com why is viagra so expensive <a href= http://buyviagrabtc.com >buy viagra</a> sea <a href=http://buyviagrabtc.com>generic viagra online</a> viagra drug interactions

Comment: 4
Marvinhub , Oct 24, 2017

b http://canadianpharmacybtc.com viagra experiences first time <a href= http://canadianpharmacybtc.com >canadian better india pharmacy</a> determined <a href=http://canadianpharmacybtc.com>canadian pharmacy viagra</a> viagra coupons online

Comment: 5
Marvinhub , Oct 24, 2017

r http://essaywritingservicebtc.com essay writing service <a href= http://essaywritingservicebtc.com >btc</a> led <a href=http://essaywritingservicebtc.com>top essay writing services</a> buy essay online

Comment: 6
Marvinhub , Oct 24, 2017

e http://propeciabtc.com does generic finasteride work propecia online <a href= http://propeciabtc.com >propecia coupon</a> court <a href=http://propeciabtc.com>propecia coupon</a> alopecia finasteride

Comment: 7
Marvinhub , Oct 24, 2017

z http://personalloansbtc.com payday loans omaha ne <a href= http://personalloansbtc.com >personla loans online</a> fast <a href=http://personalloansbtc.com>payday loans online</a> top payday loans companies

Comment: 8
Marvinhub , Oct 24, 2017

e http://levitrabtc.com medicament levitra <a href= http://levitrabtc.com >buy viagra</a> wild <a href=http://levitrabtc.com>buy viagra</a> levitra homepage

Comment: 9
Marvinhub , Oct 24, 2017

f http://canadianpharmacybtc.com free viagra sample <a href= http://canadianpharmacybtc.com >canada pharm</a> pleasure <a href=http://canadianpharmacybtc.com>viagra</a> does viagra show up on a drug test

Comment: 10
Marvinhub , Oct 24, 2017

u http://buyviagrabtc.com coupon for viagra <a href= http://buyviagrabtc.com >buy viagra online</a> almost <a href=http://buyviagrabtc.com>veagra</a> how to make homemade viagra

Comment: 11
Marvinhub , Oct 24, 2017

j http://essaywritingservicebtc.com top essay writing services <a href= http://essaywritingservicebtc.com >top essay writing services</a> beside <a href=http://essaywritingservicebtc.com>buy essay online</a> btc

Comment: 12
Marvinhub , Oct 24, 2017

g http://propeciabtc.com propecia generic finasteride hair loss <a href= http://propeciabtc.com >propecia</a> I'll <a href=http://propeciabtc.com>propecia coupon</a> generic propecia

Comment: 13
Marvinhub , Oct 24, 2017

o http://buycialisbtc.com side effects of cialis 20mg <a href= http://buycialisbtc.com >cialis side effects with alcohol</a> forth <a href=http://buycialisbtc.com>viagra</a> how much cialis is too much

Comment: 14
Marvinhub , Oct 24, 2017

g http://personalloansbtc.com payday loans online direct lenders <a href= http://personalloansbtc.com >payday loans</a> passing <a href=http://personalloansbtc.com>loan personal money</a> no bank account payday loans

Comment: 15
Marvinhub , Oct 24, 2017

o http://propeciabtc.com proscar finasteride 5mg prescription <a href= http://propeciabtc.com >propecia coupon</a> is <a href=http://propeciabtc.com>propecia online</a> generic propecia effective drug

Comment: 16
Marvinhub , Oct 24, 2017

y http://propeciabtc.com cheap propecia london <a href= http://propeciabtc.com >buy propecia</a> touch <a href=http://propeciabtc.com>buy propecia affordable</a> results timeline generic finasteride

Comment: 17
Marvinhub , Oct 25, 2017

m http://levitrabtc.com levitra and blood sugar <a href= http://levitrabtc.com >levitra coupons</a> hardly <a href=http://levitrabtc.com>lavitra</a> what to expect from levitra

Comment: 18
Marvinhub , Oct 25, 2017

m http://levitrabtc.com buy levitra online from canada <a href= http://levitrabtc.com >levitra cost</a> got <a href=http://levitrabtc.com>generic levitra</a> levitra with dapoxetine review

Comment: 19
VidmanHew , Oct 26, 2017

cialis online deals <a href=http://cialisknz.com/>cialis online</a> <a href="http://cialisknz.com/">cialis</a> india cialis buy

Comment: 20
Payday , Oct 29, 2017

Hello! <a href="http://paydayfastnowz.com/">fast payday loans</a>

Comment: 21
Pay , Oct 29, 2017

Hello! <a href="http://soloadvance.com/"> pay day loans</a>

Comment: 22
Payday , Oct 29, 2017

Hello! <a href="http://nofaxpaydaynpz.com/">faxless payday loan</a>

Comment: 23
Pay , Oct 29, 2017

Hello! <a href="http://fastloansolo.com/"> pay day loans</a>

Comment: 24
Cialis , Nov 2, 2017

Hello! <a href="http://cialisunb.com/">generic cialis online</a>

Comment: 25
cialis_coupon , Nov 2, 2017

Hello! <a href="http://cialisolas.com/">cialis coupon</a>

Comment: 26
viagra_coupons , Nov 2, 2017

Hello! <a href="http://viagragche.com/">viagra coupons</a>

Comment: 27
Cialis , Nov 2, 2017

Hello! <a href="http://candiancialisuy.com/">buy cialis online</a>

Comment: 28
RotCep , Nov 3, 2017

h http://tadalafilph24.com prices of cialis <a href= http://tadalafilph24.com >buy cialis online</a> let

Comment: 29
RotCep , Nov 3, 2017

q http://tadalafilph24.com cialis 5mg review <a href= http://tadalafilph24.com >cialis</a> both

Comment: 30
RotCep , Nov 3, 2017

z http://tadalafilph24.com cheap cialis generic online <a href= http://tadalafilph24.com >buy tadalafil</a> always

Comment: 31
RotCep , Nov 3, 2017

m http://tadalafilph24.com cheapest place to buy cialis <a href= http://tadalafilph24.com >buy cialis</a> bit

Comment: 32
RotCep , Nov 3, 2017

w http://tadalafilph24.com cialis generic reviews <a href= http://tadalafilph24.com >buy tadalafil</a> wife

Comment: 33
NastyaHew , Nov 6, 2017

obtenir prescription viagra http://viagrapaol.com/ - buy generic viagra <a href="http://viagrapaol.com/">buy viagra</a> only today pill viagra

Comment: 34
OsmininaHew , Nov 8, 2017

viagra billig lastschrift <a href=http://viagrahsk.com/>buy viagra</a> <a href="http://viagrahsk.com/">buy viagra</a> viagra genereique en ligne

Comment: 35
OsmininaHew , Nov 8, 2017

safely viagra buying <a href=http://viagrahsk.com/>buy generic viagra</a> <a href="http://viagrahsk.com/">online viagra</a> wow)) viagra attorneys

Comment: 36
WadimHew , Nov 10, 2017

viagra 100 mg and sleep http://viagralkp.com/ - cheap viagra <a href="http://viagralkp.com/">viagra cheap</a> best times to take viagra

Comment: 37
SokowaHew , Nov 10, 2017

viagra side effects alcohol <a href=http://viagragenericvas.com/>buy generic viagra</a> <a href="http://viagragenericvas.com/">viagra online</a> viagra sildenafil sale

Comment: 38
buy_viagra , Nov 15, 2017

Hello! <a href="http://cheapvagratlonline.com/">buy viagra</a>

Comment: 39
buy_viagra , Nov 15, 2017

Hello! <a href="http://viagraferx.com/">buy viagra</a>

Comment: 40
buy_viagra , Nov 15, 2017

Hello! <a href="http://viagragche.com/">buy viagra</a>

Comment: 41
buy_cialis , Nov 15, 2017

Hello! <a href="http://cheapgenericialisjh.com/">buy cialis</a>

Comment: 42
cialis_online , Nov 15, 2017

Hello! <a href="http://cialisqnz.com/">cialis online</a>

Comment: 43
OlegHew , Nov 16, 2017

viagra tablets wholesale http://viagraonlinelka.com/ - viagra cheap <a href="http://viagraonlinelka.com/">buy generic viagra</a> buy meds with paypal viagra

Comment: 44
MaksHew , Nov 16, 2017

low cost cialis in townsville <a href=http://cialisorderasj.com/>buy cialis</a> <a href="http://cialisorderasj.com/">generic cialis</a> cialis coupon phone number

Comment: 45
SnezhanaHew , Nov 21, 2017

de donde comprar viagra http://buyviagralkq.com/ - viagra cheap <a href="http://buyviagralkq.com/">buy viagra online</a> prix du viagra en officin

Comment: 46
online_viagra , Nov 23, 2017

Hello! <a href="http://viagralkq.com/">online viagra</a>

Comment: 47
online_viagra , Nov 23, 2017

Hello! <a href="http://viagraomz.com/">online viagra</a>

Comment: 48
cialis_cheap , Nov 23, 2017

Hello! <a href="http://cialisqnz.com/">cialis cheap</a>

Comment: 49
cialis_cheap , Nov 23, 2017

Hello! <a href="http://cialisubz.com/">cialis cheap</a>

Comment: 50
cialis_cheap , Nov 23, 2017

Hello! <a href="http://cialisbuyhaq.com/">cialis cheap</a>

Leave a comment

" What you do not want to happen to you, do not do it yourself either" Sextus the Pythagorean