在 'featured' 部分显示特定标签而不是最新帖子

Show a specific label at 'featured' section instead of latest posts

我正在为我的网站使用博客模板,我想更改特色部分,而不是显示最新的post我想显示一个特定的标签。

我对此一无所知,但我相信这是 "controls" 博客的特色部分:

<div class='ct-wrapper' id='featured-posts-section'>
    <div class='featured-post padding clearfix'>        
        <script type='text/javaScript'>
            document.write(&quot;&lt;script src=\&quot;/feeds/posts/default?max-results=&quot;+featured_numposts+&quot;&amp;orderby=published&amp;alt=json-in-script&amp;callback=sliderposts\&quot;&gt;&lt;\/script&gt;&quot;);
        </script>                                                                                                           
    </div>
</div>

感谢支持!

这是网站link:https://www.santaclarabookstore.com.br/

您将需要更改 Feed URL 以指向您希望在特色部分中显示其帖子的特定 Label 的 Feed。假设您要显示的标签名为 labelName。那么上面的代码会这样改(只改粗体部分)-

<script type='text/javaScript'>
document.write(&quot;&lt;script src=\&quot;/feeds/posts/default<b>/-/labelName</b>?max-results=&quot;+featured_numposts+&quot;&amp;orderby=published&amp;alt=json-in-script&amp;callback=sliderposts\&quot;&gt;&lt;\/script&gt;&quot;);
</script>