【发布时间】:2014-04-18 09:49:52
【问题描述】:
请看下面的代码!它来自 wordpress 插件。
我怎样才能得到结果
$search = 帖子标题(空格)类别名称
// Relation: Post title.
if( $relation === 'posttitle' ) {
global $post;
$search = ( isset( $post->post_title ) ) ? $post->post_title : '';
}
它来自一个 wordpress 插件相关的 YouTube 视频。我想根据标题和类别向您展示电子管! 这个插件没有两个选项!
https://wordpress.org/plugins/related-youtube-videos/
related-youtube-videos\lib\RelatedYouTubeVideos\API.php
提前致谢!
【问题讨论】: