guys. I'm new to PHP and Wordpress and I've been stuck on this for hours and hours. I'm basically trying to put some code in "the loop" to output the current Wordpress slug and I don't think FirePHP, the only solution I have up and running, can do that. My understanding is that the loop comes after http headers are sent and that you have to call FirePHP (fb.php) before the headers are sent--I'm assuming that's correct. What solution would you guys recommend for a newb like me? The output can go into a browser, third party app, log file, etc. I don't care. I just want the data. Your suggestions are welcome, thanks.
1条回答 默认 最新
- drvc63490 2014-11-19 00:46关注
To get a post slug, just put:
echo $post->post_name;
Within the loop. FirePHP doesn't have anything to do with it.
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥30 类鸟群Boids——仿真鸟群避障的相关问题
- ¥15 CFEDEM自带算例错误,如何解决?
- ¥15 有没有会使用flac3d软件的家人
- ¥20 360摄像头无法解绑使用,请教解绑当前账号绑定问题,
- ¥15 docker实践项目
- ¥15 数电几道习题,写出作答过程,ai一律不采用
- ¥15 利用pthon计算薄膜结构的光导纳
- ¥15 海康hlss视频流怎么播放
- ¥15 Paddleocr:out of memory error on GPU
- ¥30 51单片机C语言数码管驱动单片机为AT89C52