We have an embed that shows latest posts on the home page.
{embed="/embeds/.sidebar_articles}
This works. But when I go to change anything in it, such as filtering the posts or even just making a text change nothing updates on the live website.
{if segment_1 == "section"}
{if segment_3 == ""}
{!-- ============================================
DISPLAY A LIST OF MOST READ ARTICLES FROM THE
CURRENT CATEGORY. FOR HOME PAGE- DISPLAY ACROSS
ALL CATEGORIES.
============================================= --}
<div class="art-preview">
{exp:channel:entries
channel="sections"
limit="3"
dynamic="off"
{if segment_2}category="{segment_2_category_id}"{/if}
orderby="view_count_one" }
{if count == "1"}
{if segment_2 == ""}
<h3>Most read stories</h3>
{if:else}
<h3>Popular in <span data-source="{segment_2}">{segment_2_category_name}</span></h3>
{/if}
{/if}
<a href="/section/{segment_2}/{url_title}">
<div class="preview">
{if article_cover_image}
{exp:ce_img:pair src="{article_cover_image}" width="160" height="160" crop="yes"}
<img src="{made}" alt="">
{/exp:ce_img:pair}
{if:else}
<img src="http://placehold.it/160x160">
{/if}
<h4>{title}</h4>
<div class="meta">Last edited {edit_date format='%d/%m/%y'}</div>
{!-- <div class="lead"> {article_lead} </div> --}
</div>
</a>
{/exp:channel:entries}
</div> <!-- /art-preview -->
{if:else}
{!-- ============================================
DISPLAY A LIST OF ENTRIES FROM THE SAME CATEGORY
AS THE CURRENT ARTICLE.
============================================= --}
<div class="art-preview">
{exp:channel:entries
channel="sections"
limit="3"
dynamic="off"
{if segment_2}category="{segment_2_category_id}"{/if}
url_title="not {segment_3}"}
{if count == "1"}<h3>Related</h3>{/if}
<a href="/section/{segment_2}/{url_title}">
<div class="preview">
{if article_cover_image}
{exp:ce_img:pair src="{article_cover_image}" width="160" height="160" crop="yes"}
<img src="{made}" alt="">
{/exp:ce_img:pair}
{if:else}
<img src="http://placehold.it/160x160">
{/if}
<h4>{title}</h4>
<div class="meta">Last edited {edit_date format='%d/%m/%y'}</div>
{!-- <div class="lead"> {article_lead} </div> --}
</div>
</a>
{/exp:channel:entries}
</div> <!-- /art-preview -->
{/if}
{if:else}
<div class="art-preview">
{exp:channel:entries
channel="sections"
limit="3"
dynamic="off"
{if segment_1 == ""}orderby="view_count_one"{/if}}
{if count == "1"}
{if segment_1 == ""}
<h3>Most read stories</h3>
{if:else}
<h3>Latest News</h3>
{/if}
{/if}
<a href="/section/{categories}{category_url_title}{/categories}/{url_title}">
<div class="preview">
{if article_cover_image}
{exp:ce_img:pair src="{article_cover_image}" width="160" height="160" crop="yes"}
<img src="{made}" alt="">
{/exp:ce_img:pair}
{if:else}
<img src="http://placehold.it/160x160">
{/if}
<h4>{title}</h4>
<div class="meta">Last edited {edit_date format='%d/%m/%y'}</div>
{!-- <div class="lead"> {article_lead} </div> --}
</div>
</a>
{/exp:channel:entries}
</div> <!-- /art-preview -->
{/if}
I've tried pasting this code direct into the template, it shows up but again doesn't show any changes made.