dsyk33753 2012-09-24 22:40
浏览 22
已采纳

将自定义数据库页面迁移到Wordpress

I've been toying with the idea of using Wordpress as a CMS to replace the various database-driven pages I've kludged together over the years. I'm wondering though if there's a seamless way to grab info from a database based on the URL.

e.g. I have pages that serve up info on awards

/academy-awards grabs the intro info from the database
/academy-awards/32 grabs the intro info about the 32nd edition
/academy-awards/32/winners grabs the results and commentary for that ceremony

Now, academy-awards is actually an extensionless php file and depending on what comes after it (nothing, a number, a number and word) it serves up the various pages.

How would/could I translate that work into Wordpress? I'm a complete WP noob, so I'm hoping your initial answers can help me dig a little more.

  • 写回答

2条回答 默认 最新

  • dongmei2351 2012-10-03 00:08
    关注

    After digging around some more it appears I can access info from other databases by using Custom Queries (http://codex.wordpress.org/Custom_Queries) and combining them with page templates.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 mmocr的训练错误,结果全为0
  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀