Posts by marktaylor

    I cannot seem to update post excerpts on existing posts, and for new posts no excerpts show up. I have the latest version installed but cannot see why it is not showing. Code is below - any help much appreciated. Thanks



    <div class="col-md-6 col-lg-4 mb-5 news-card">

    <perch:if exists="image">

    <a href="<perch:blog id="postURL" />" > <img src="<perch:blog id="image" type="image"/>" class="img-fluid" alt="<perch:blog id="postTitle" />" />

    </a></perch:if>

    <div class="outer">

    <div class="entry-published date"><i class="far fa-calendar-alt"></i><perch:blog id="postDateTime" format="j M Y" /></div>

    <h3><a href="<perch:blog id="postURL" />" class="entry-title"><perch:blog id="postTitle" /></a></h3>

    <div class="description entry-summary">

    <perch:blog id="excerpt" type="textarea" textile="true" chars="125" append="..." />

    </div>

    </div>

    <a href="<perch:blog id="postURL" />" class="btn-main btn-block"><span>Read more</span></a>

    </div>

    Hi,


    I'm trying to pull the category(ies) that the current post is in. The issue I have is that I want the categories to be displayed 'Published in 'Cat 1', 'Cat 2'' where if there is multiple categories it is displayed next to the current with a comma separating. If it has a single category, it doesn't print a comma. Currently, it prints:


    Published in 'Cat 1'


    Published in 'Cat 2'


    My code is below with the template


    <?php perch_blog_post_categories(perch_get('s')); ?>


    post_category_link.html:


    <p>Published in <a href="archive.php?cat=<perch:category id="catSlug" />"><perch:category id="catTitle" /></a></p>


    Hope this makes sense.


    Thanks,

    I was reading a thread about perch 4, not sure I got the full extent of the conversation, but it perch not longer being supported/being discontinued.


    I recently came across this and would like to use it on a site, but now I’m not sure going forward.


    thanks in advance