WordPress 移动包自定义页面模板

发布于 2024-09-26 20:10:55 字数 346 浏览 2 评论 0原文

希望有人可以提供帮助。

我继承了一个基于 WP 的网站,该网站已安装 WPMP 并已安装 WPMP。激活&正在处理它(我可以看到它在很多页面上都有效)。

我必须创建一个自定义模板&使用此模板的一些页面。不幸的是,当我切换到移动模式(或查看 iPhone 上的新页面)时,没有显示任何帖子。

自定义模板必须多次查询帖子才能在不同位置显示不同的帖子分组。我有一种感觉,这些动态查询正在消除 WPMP 查看任何帖子的能力。

因此,我唯一能想到的就是以某种方式“提供”WPMP 要查看的帖子列表。

我该怎么做?

请帮忙...

  • O8

Hoping someone can help.

I've inherited a WP based website which has WPMP already installed & activated & working on it (I can see it work on many pages).

I've had to create a custom template & a few pages that use this template. Unfortunately, when I switch to mobile mode (or check out the new pages on my iPhone), no posts show.

The custom template has to query for posts multiple times to display different groupings of posts in different places. I have a feeling these dynamic queries are removing the ability for WPMP to see any posts at all.

So the only thing I can think of doing is somehow "providing" WPMP the list of posts to see.

How do I do this?

Please help...

  • O8

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

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

发布评论

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

评论(3

遮了一弯 2024-10-03 20:10:55

我认为根据您的情况,最好的方法是:
1.将wordpress升级到最新版本。
2. 安装 http://wordpress.org/extend/plugins/wptouch/ - 这将在移动设备上为您完成所有工作。

I think that in your situation you best way will be to:
1. Upgrade wordpress to the lastest version.
2. Install http://wordpress.org/extend/plugins/wptouch/ - that will do all the work for you on mobile.

空宴 2024-10-03 20:10:55

如果您在移动包中获取帖子时遇到问题,那么在自定义寺庙中,请运行 wp_query 或 SQL 命令来选择所有帖子并声明 a

Global $posts

,一旦填充了 $posts,则可以执行循环中使用的常规命令来显示帖子。

if you are having trouble fetch posts in mobile pack, then in custom temple, please run wp_query or SQL command to select all posts and declared a

Global $posts

and once $posts is populated then the regular commands which are used in the loop can be executed to show posts.

み格子的夏天 2024-10-03 20:10:55

您是否在每次循环后使用 wp_reset_query
http://codex.wordpress.org/Function_Reference/wp_reset_query

使用 Firebug 使用 Firefox、Chrome、Safari 或 IE8 的开发工具来查看您网站上加载的内容并检查 JavaScript 错误和 CSS 冲突。

Are you using wp_reset_query after each loop?
http://codex.wordpress.org/Function_Reference/wp_reset_query

Use Firebug with Firefox, or Chrome's or Safari's or IE8's developer tools to see what's loading on your site and check for javascript errors and css conflicts.

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