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
MoisesHew , Aug 18, 2017

cialis prijs apotheek http://buyxocialishnline.com/ - cialis online <a href="http://buyxocialishnline.com/">buy cialis</a> cheap cialis in australia

Comment: 2
SofiyaHew , Aug 18, 2017

best indian substitute viagra. http://viagraprofessionalok.com/ - buy viagra <a href="http://viagraprofessionalok.com/">buy viagra online</a> viagra cialis unterschied

Comment: 3
Williamlal , Aug 18, 2017

<a href=http://feandrol.org/>gГ©nГ©rique cialis 20mg</a> cialis generique pour quand <a href=" http://feandrol.org/ ">cialis gГ©nГ©rique en pharmacie</a> cialis generique en pharmacie prix

Comment: 4
buy_viagra , Aug 19, 2017

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

Comment: 5
Cialis , Aug 19, 2017

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

Comment: 6
cheap_viagra , Aug 19, 2017

Hello! <a href="http://viagracanadiancheapl.com/">cheap viagra</a>

Comment: 7
Cialis , Aug 19, 2017

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

Comment: 8
buy_viagra , Aug 19, 2017

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

Comment: 9
MoisesHew , Aug 20, 2017

cialis 10 mg prices in lebanon <a href=http://cheapgcialisonline.com/>online cialis</a> <a href="http://cheapgcialisonline.com/">cialis</a> cialis journalier

Comment: 10
VerdyHew , Aug 21, 2017

comprar viagra fiable http://buycheaphyviagra.com/ - generic viagra <a href="http://buycheaphyviagra.com/">cheap viagra online</a> where to get viagra in stores

Comment: 11
Viagra , Aug 21, 2017

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

Comment: 12
viagra_online , Aug 21, 2017

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

Comment: 13
Viagra , Aug 21, 2017

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

Comment: 14
cialis_online , Aug 21, 2017

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

Comment: 15
Viagra , Aug 21, 2017

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

Comment: 16
NoilHew , Aug 22, 2017

acheter du cialis france <a href=http://cheapcialisdiscounts.com/>discount cialis</a> <a href="http://cheapcialisdiscounts.com/">buy cialis</a> cialis effetti secondar

Comment: 17
BillyHew , Aug 24, 2017

we choice viagra attorneys <a href=http://buyviagradse.com/>viagra</a> <a href="http://buyviagradse.com/">cheap viagra</a> cheap pfizer brand viagra

Comment: 18
BillyHew , Aug 24, 2017

very cheap tablets like viagra <a href=http://buyviagradse.com/>viagra</a> <a href="http://buyviagradse.com/">generic viagra</a> female generic viagra

Comment: 19
MoisesHew , Aug 24, 2017

commander cialis sur interne http://buyxocialishnline.com/ - generic cialis <a href="http://buyxocialishnline.com/">cialis cheap</a> how big does cialis get you

Comment: 20
LemanHew , Aug 24, 2017

dosis segura cialis http://cheapcialislp.com/ - buy cialis <a href="http://cheapcialislp.com/">cheap cialis</a> get cialis prescription online

Comment: 21
ValyaHew , Aug 26, 2017

cialis kaufen in polen http://buycialisonlineji.com/ - cialis canada <a href="http://buycialisonlineji.com/">buy canadian cialis</a> cialis soft 120 pills

Comment: 22
MoisesHew , Aug 27, 2017

same day loans with monthly payments http://loansolofast.com/ - online payday advance <a href="http://loansolofast.com/">payday loans advance</a> top in Louisville/Jefferson KY cash advance

Comment: 23
TramHew , Aug 27, 2017

the best choice cialis on line http://gencialishs.com/ - cialis <a href="http://gencialishs.com/">online cialis</a> safe online pharmacy cialis

Comment: 24
MaoisesHew , Aug 27, 2017

personal loans with bad credit mn http://paydayfastnowz.com/ - payday loans <a href="http://paydayfastnowz.com/"> loans for bad credit</a> payday loan in matteson il

Comment: 25
MoledHew , Aug 28, 2017

avis cialis 2 <a href=http://cheapcialisuik.com/>tadalafil generic cialis</a> <a href="http://cheapcialisuik.com/">buy cialis</a> cialis belgique pharmacie

Comment: 26
LowerHew , Aug 28, 2017

viagra generique moins che http://cheaapviagraonlis.com/ - viagra online <a href="http://cheaapviagraonlis.com/">sildenafil citrate</a> only now buy viagra

Comment: 27
LeonHew , Aug 29, 2017

price 50 mg viagra tablets <a href=http://buyfdviagraonline.com/>cheap viagra</a> <a href="http://buyfdviagraonline.com/">online viagra</a> where can i get viagra cheap

Comment: 28
ViagaHew , Aug 29, 2017

precio del viagra en chile <a href=http://buyviagradtoday.com/>buy viagra online</a> <a href="http://buyviagradtoday.com/">buy viagra online</a> viagra generica preci

Comment: 29
TodoHew , Aug 29, 2017

cialis pills for men find http://cialisonlinefq.com/ - generic cialis <a href="http://cialisonlinefq.com/">generic cialis</a> pida cialis para el barato

Comment: 30
viagra_generic , Aug 30, 2017

Hello! <a href="http://viagrasoftrxtabs.com/">viagra generic</a>

Comment: 31
cheap_cialis , Aug 30, 2017

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

Comment: 32
India , Aug 30, 2017

Hello! <a href="http://v2indian.com/">viagra india generic</a>

Comment: 33
Cash , Aug 30, 2017

Hello! <a href="http://soloadvance.com/"> cash advance</a>

Comment: 34
Cash , Aug 30, 2017

Hello! <a href="http://fastloansolo.com/"> cash advance</a>

Comment: 35
VirtuHew , Aug 30, 2017

compra cialis diariamente http://buycialisoponline.com/ - cialis cheap <a href="http://buycialisoponline.com/">cheap cialis</a> link for you 5 mg cialis

Comment: 36
Payday , Sep 2, 2017

Hello! <a href="http://nofaxpaydaynvz.com/">faxless payday advance</a>

Comment: 37
Pay , Sep 2, 2017

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

Comment: 38
Pay , Sep 2, 2017

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

Comment: 39
Payday , Sep 2, 2017

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

Comment: 40
MishaHew , Sep 2, 2017

young men taking viagra <a href=http://buyviagratyonline.com/>viagra cheap</a> <a href="http://buyviagratyonline.com/">generic viagra</a> viagra farmacia interne

Comment: 41
VerdeHew , Sep 2, 2017

viagra serios bestellen forum <a href=http://cheapvagratlonline.com/>generic viagra</a> <a href="http://cheapvagratlonline.com/">viagra generic</a> wow)) cheap viagra alternative

Comment: 42
ValeryHew , Sep 4, 2017

viagra for men malaysia online <a href=http://cheapviagralmonline.com/>viagra generic</a> <a href="http://cheapviagralmonline.com/">generic viagra</a> acheter viagra 50 mgs

Comment: 43
OrdeviHew , Sep 4, 2017

generic super viagra <a href=http://orderviagraolnline.com/>buy viagra</a> <a href="http://orderviagraolnline.com/">cheap viagra</a> athens shop viagra in greece

Comment: 44
sildenafil_citrate , Sep 4, 2017

Hello! <a href="http://cheaapviagraonlis.com/">sildenafil citrate</a>

Comment: 45
viagra_cheap , Sep 4, 2017

Hello! <a href="http://buyviagradtoday.com/">viagra cheap</a>

Comment: 46
cheap_cialis , Sep 4, 2017

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

Comment: 47
cialis_cheap , Sep 4, 2017

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

Comment: 48
Payday , Sep 4, 2017

Hello! <a href="http://bestsololoan.com/">faxless payday loans</a>

Comment: 49
GoodwinHew , Sep 5, 2017

cialis cost in mexico <a href=http://ordercheapialisgs.com/>cialis generic</a> <a href="http://ordercheapialisgs.com/">order cialis</a> compre el descuento cialis

Comment: 50
RalphCrund , Sep 6, 2017

preisgГјnstige cialis <a href="http://cialisxrm.com/">cialis without a doctor prescription</a> differenza tre viagra e cialis <a href=http://cialisxrm.com/>cialis generic</a>

Comment: 51
VerdoHew , Sep 7, 2017

no fee installment loans <a href=http://paydayloansolk.com/>payday loans online</a> <a href="http://paydayloansolk.com/">no faxing payday advance</a> payday advance pembroke pines

Comment: 52
GermaHew , Sep 10, 2017

generisches cialis kaufen <a href=http://buyfscialisonline.com/>buy cialis online</a> <a href="http://buyfscialisonline.com/">buy cheap cialis</a> buy cialis online china

Comment: 53
buy_viagra , Sep 13, 2017

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

Comment: 54
cialis_deals , Sep 13, 2017

Hello! <a href="http://pillselcialispills.com/">cialis deals</a>

Comment: 55
Cheap , Sep 13, 2017

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

Comment: 56
buy_cialis , Sep 13, 2017

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

Comment: 57
buy_cialis , Sep 13, 2017

Hello! <a href="https://cialisols.com/">buy cialis</a>

Comment: 58
Pay , Sep 13, 2017

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

Comment: 59
Payday , Sep 13, 2017

Hello! <a href="http://nofaxpaydaynvz.com/">faxless payday loans</a>

Comment: 60
Payday , Sep 13, 2017

Hello! <a href="http://soloadvance.com/"> payday express</a>

Comment: 61
Payday , Sep 13, 2017

Hello! <a href="http://loansolobest.com/"> payday express</a>

Comment: 62
MoisesHew , Sep 13, 2017

viagra quand le prendre <a href=http://fedviagra.com/>viagra online</a> <a href="http://fedviagra.com/">viagra</a> half of a 100mg viagra

Comment: 63
InnoHew , Sep 14, 2017

cialis dosage liquid <a href=https://cialisgers.com/>cialis online</a> <a href="https://cialisgers.com/">buy cialis</a> cialis 10 mg posologia

Comment: 64
OlegHew , Sep 15, 2017

payday loans in deland fl http://fastloansolo.com/ - payday loans <a href="http://fastloansolo.com/"> personal loans</a> cash loans frederick md

Comment: 65
YlosHew , Sep 16, 2017

what if u snort a viagra 100mg http://viagragche.com/ - viagra <a href="http://viagragche.com/">buy cheap viagra</a> gutes viagra kaufen

Comment: 66
Loans , Sep 19, 2017

Hello! <a href="http://paydayloanonli.com/">payday loans online</a>

Comment: 67
Loans , Sep 19, 2017

Hello! <a href="http://paydayloansolk.com/">payday loans online</a>

Comment: 68
personal_loans , Sep 19, 2017

Hello! <a href="http://fastcashisok.com/">personal loans</a>

Comment: 69
Felipeherce , Sep 20, 2017

canadian meds <a href="http://canadianpharmacyrxbsl.com/">canadian online pharmacies</a> pharmacy near me <a href=http://canadianpharmacyrxbsl.com/?allergic-reaction-to-amoxicillin>allergic reaction to amoxicillin</a> online canadian pharcharmy <a href="http://canadianpharmacyrxbsl.com/?viagra-g-n-rique-livre-sous-48h">viagra gГ©nГ©rique livre sous 48h</a>

Comment: 70
FedyaHew , Sep 20, 2017

online shopping viagra india, http://viagralpo.com/ - viagra coupons <a href="http://viagralpo.com/">cheap viagra</a> viagra buy china

Comment: 71
Felipeherce , Sep 21, 2017

canadian prescription drugstore <a href="http://canadianpharmacyrxbsl.com/">canadian online pharmacies</a> prescription drugs canada <a href=http://canadianpharmacyrxbsl.com/?side-effects-of-prednisone>side effects of prednisone</a> canada pharmacy online reviews <a href="http://canadianpharmacyrxbsl.com/?cialis-generika-in-deutschland-kaufen">cialis generika in deutschland kaufen</a>

Leave a comment

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