Php 如何在其他帖子中悬停帖子链接时显示包含缩略图和摘录的工具提示
有并没有办法在另一篇wordpress文章中调用缩略图和摘录作为文章的链接?例如,当我在其他帖子中悬停帖子链接时,它会显示包含缩略图、摘录的工具提示。如本网站: 我试过使用插件。 在rb-internal-links.php第114行中 我将此行添加到调用图像:Php 如何在其他帖子中悬停帖子链接时显示包含缩略图和摘录的工具提示,php,wordpress,plugins,Php,Wordpress,Plugins,有并没有办法在另一篇wordpress文章中调用缩略图和摘录作为文章的链接?例如,当我在其他帖子中悬停帖子链接时,它会显示包含缩略图、摘录的工具提示。如本网站: 我试过使用插件。 在rb-internal-links.php第114行中 我将此行添加到调用图像: $image = get_the_post_thumbnail( $post->ID, 'thumbnail' ); 但它不起作用 <?php /* RB Internal Links ============
$image = get_the_post_thumbnail( $post->ID, 'thumbnail' );
但它不起作用
<?php
/*
RB Internal Links
==============================================================================
Link to your other blog posts without having to use the full url, just in case anything changes later on!
Info for WordPress:
==============================================================================
Plugin Name: RB Internal Links
Plugin URI: http://www.blograndom.com/blog/
Description: Link to other blog posts and pages without specifying the full URL. Uses a UI to ease finding the post or page you want to link to.
Version: 2.0.16
Text Domain: rb-internal-links
Author: Arron Woods
Author URI: http://www.blograndom.com
Copyright 2009 Arron Woods (blograndom.com) (email : info@blograndom.com)
==============================================================================
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/**
* Core class for RB Internal links
*
* Sets up hooks, core methods, etc
*/
if (floatval(phpversion()) < 5)
die('You must have PHP version 5+ to use RB Internal Links');
致以最诚挚的问候。我不能完全确定我是否理解您的情况。 如果你正在寻找一个插件,让你有html,图像,链接等工具提示
我建议使用工具提示。在这里查找文档和代码:在阅读了augusto关于使用Tooltipster的建议后,我制作了一个免费的WordPress插件
谢谢你的回答,但我的意思是在wordpress博客上。