我有当前的作者ID存储在$theauthorid我想基于作者ID进行查询所以我这样做
query_posts('author=$theauthorid');
Run Code Online (Sandbox Code Playgroud)
但是,除非我手动编写id,否则它不起作用.我知道id正确存储,因为当我回复它时,我得到了正确的id.
| 归档时间: |
|
| 查看次数: |
4883 次 |
| 最近记录: |