在 TwentyTen (Wordpress) 中制作热门部分

发布于 2024-09-07 22:51:08 字数 400 浏览 0 评论 0原文

好吧,TwentyTen 是一个很棒的新主题,很好。

但是,我希望为其添加更多功能,使其像具有杂志风格首页的主题(类似于混合新闻),主要是一个“热门内容”特色部分,我可以在其中动态地挑选最活跃的帖子(例如检查 facebook 点赞数、twitter 分享数或评论数等。) 我需要此功能,因为我网站上的作者数量将会增加,我需要这种选择机制来标记热门帖子。

从我到现在为止的想法来看,我必须向我的主题添加一些 php,并做一些 CSS。

但是,我该怎么办呢?因为法典在这方面让我感到困惑。

Ok so, TwentyTen is a great new theme, fine.

However, I wish to add more functionality to it and make it like a theme having a magazine style front page (similar to Hybrid News) with mainly a "Whats Hot" Featured Section where I can pick up posts dynamically having the most activity on them (like checking the number of facebook likes or twitter shares or comments etc.) I need this feature as the number of authors on my site will increase and I would need this kind of a selection mechanism to mark out the trending posts.

From what I figured out till now, I would have to add some php to my theme, and do a bit of CSS.

But, How do I go about it? Because the codex is confusing me on this one.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

锦爱 2024-09-14 22:51:08

@Pekka是正确的。这确实比某些 PHP 需要更多的聪明才智。试试这个插件。它是为 2.9.2 构建的,但在 3.0 上也能正常工作。我确信作者最终会更新它,因为它很受欢迎。

@Pekka is correct. This does require a little more ingenuity than some PHP. Try this plugin out. It's built for 2.9.2, but does work with 3.0 just fine. I'm sure the author will update it eventually since it's a popular one.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文