Trouble with updating 'Read Next' section

I’m trying to update our related-posts.hbs so that it shows the three most recent posts on the site not including the current one if it’s one of the three most recent.

I tried the tutorial on the Ghost site, but it is not working. I’ve copied our current code below, which is showing old posts on the same topic. What do I need to change on the code below to get it to show the three most recent posts regardless of author?

Our site is sdnewswatch.org.

{{#is "post"}}
    {{#get "posts" include="authors" filter="tags:[{{post.tags}}]+id:-{{post.id}}" limit="3" as |next|}}
        {{#if next}}
            <div class="gh-read-next gh-canvas">
                <section class="gh-pagehead">
                    <h4 class="gh-pagehead-title">Read next</h4>
                </section>

                <div class="gh-topic gh-topic-grid">
                    <div class="gh-topic-content">
                        {{#foreach next}}
                            {{> "loop-grid" has_large_post=false}}
                        {{/foreach}}
                    </div>
                </div>
            </div>
        {{/if}}
    {{/get}}
{{/is}}

You’re missing the order parameter.

That worked! Thank you!

1 Like