腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
2
回答
从
the_permalink
()
获取
父
URL
;
、
、
、
Wordpress PHP函数我得到了这个网址: 我基本上需要他父母的网址。我怎样才能得到它?( )
浏览 17
提问于2017-12-22
得票数 0
回答已采纳
1
回答
the_permalink
不工作吗?wp_list_pages
、
但是,当我将
the_permalink
添加到标题、缩略图等并单击它们时,它们只是刷新
父
页面,而不是
获取
标题(页面)
url
。我会插入我所拥有的也许有人知道如何修复它?任何帮助都会很高兴的!php
the_permalink
(); ?>"> <?php echo get_the_post_thumbnail($page->ID, 'full'); ?php
the_permalink
(); ?>">
浏览 3
提问于2015-08-31
得票数 2
回答已采纳
3
回答
如何替换wordpress当前页面
url
中的http://?
、
、
嗨,我试着
从
wordpress站点的当前
url
替换http:// or https://。我试着换掉http:// by str_replace。我通过
the_permalink
();
获取
当前的
url
<?php echo str_replace(array('http://','https://'),'',
the_permalink
浏览 1
提问于2013-06-29
得票数 1
回答已采纳
1
回答
在标头元标签中
获取
wordpress post段塞
、
域A和B<link rel="alternate" href="<?php
the_permalink
(); ?>" hreflang="en" /> <link rel="alternate" href="https://domainB<?php <em
浏览 10
提问于2022-06-15
得票数 0
3
回答
获取
当前页面
URL
(包括分页)
、
是否有一个WP函数来自动获得当前页面的正确
URL
?
浏览 0
提问于2013-01-31
得票数 17
回答已采纳
1
回答
我们如何
从
the_permalink
()在WordPress传递一个值?
、
php
the_permalink
() ?>">有任何解决方案将值从一个页面传递到另一个页面,通过链接传递。我们可以将id传递为href=?id=,我们可以
从
单个帖子中获得值,因为链接将是www.example.com/post1/?
浏览 0
提问于2019-11-25
得票数 -1
1
回答
类别页面和职位的permalink
、
为了
获取
post
url
,我使用:<?php
the_permalink
() ?>,但是对于页面和类别呢?如果我在类别上使用<?php
the_permalink
() ?>,它会显示post
url
。
浏览 0
提问于2011-09-26
得票数 2
回答已采纳
1
回答
在返回语句中添加php
、
、
如何在返回语句中添加php代码。我的下列代码不起作用:return 'Read More'; }
浏览 0
提问于2020-05-14
得票数 -1
回答已采纳
1
回答
是否可以使用php文件在wordpress之外使用wordpress内容?
、
第一种方法运行良好,但问题是如果我在标题或阅读更多链接中放入
the_permalink
(),页面将重定向到wordpress主站点。我不想回到主网站,希望链接到自定义的php文件来显示每个单独的帖子。php
the_permalink
() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?
浏览 1
提问于2015-07-01
得票数 0
1
回答
Wordpress主页上的Facebook Like按钮损坏
、
、
、
我没有更改任何代码,但我的站点标题中相关的meta标签是: <meta property="og:
url
" content="<?php
the_permalink
(); ?
浏览 3
提问于2012-07-03
得票数 0
1
回答
WordPress -如何
获取
帖子内容和标题
、
我是WordPress的新手,我需要检索所有帖子的内容和标题,但找不到我的方法。这是我的代码。 while ( $the_query->have_posts() ) { $a= $the_query->pos
浏览 0
提问于2018-05-20
得票数 0
1
回答
链接标题到外部链接而不是permalink
、
、
$author.".com"; update_post_meta( $post_id, 'post_link', $
url
);} */ get_head
浏览 1
提问于2014-07-07
得票数 0
回答已采纳
1
回答
检索wordpress/blogger博客中所有文章的URLS。
、
我想使用一种机制/API来检索所有文章的所有URLS。理想情况下,我希望在许多平台上这样做,但是开始使用wordpress.org和blogspot.com就足够了。
浏览 2
提问于2014-02-24
得票数 0
回答已采纳
1
回答
以编程方式获得WordPress搜索结果
、
、
、
我想在我的404页面上包含一个基于用户输入的
url
的自动搜索结果输出。 <?php
the_permalink
() ?>"> <h2><?php the_title(); ?></h2> </a>我如何
获取
它,以便可以在代码中手动
浏览 0
提问于2014-12-18
得票数 3
2
回答
删除permalink尾随斜线
我需要使用
the_permalink
()来
从
每个帖子构建一个简单的链接。链接应该是 http://www.mysite.com/category/year/post-name?
浏览 0
提问于2012-01-05
得票数 2
回答已采纳
2
回答
定义Peramlink并在functions.php中的
URL
中调用它
、
php $permalink =
the_permalink
;?> 其中"
the_permalink
“使用内置的WordPress函数来
获取
博客的固定链接,然后使用functions.php中的$permalink,例如,使用图像
URL
:<img src="'.无论是
the_permalink
还是bloginfo('template_directory')都能很好地工作。
浏览 0
提问于2012-05-09
得票数 0
回答已采纳
3
回答
把一个php代码放到另一个php代码中!有可能吗?
、
我是wordpress的用户,我有一个php代码,在php代码中有一个区域可以放入一个网址:$
url
= "http://blabla.com";在wordpress中,你可以用下面的代码调用post固定链接php
the_permalink
(); ?>我想做的是在php代码中放入<?php
the_permalink
(); ?>而不是上面的。目标是:
获取
永久链接,将它们放在php代码中,让php代码使用它们来完成自己的工作。这有可能吗?如果是这样的话,举一个ple
浏览 0
提问于2009-10-01
得票数 0
3
回答
WordPress:禁止显示子类别帖子
、
我的主页列出了三个“主类别”(
父
类别)的所有帖子,但不幸的是,它也列出了一些子类别的帖子。<h2>Category Name</h2> <?php
the_permalink
(); ?>"><?php the_title(); ?></a> </li>
浏览 0
提问于2010-05-29
得票数 1
1
回答
如何
从
php代码段中删除页?
、
、
、
、
我使用了一个名为“插入PHP代码片段”的插件来创建这个页面:短代码片段;xyz-ips snippet=“全局性文件”DMCA页面请帮助我了解如何
从
片段页面中删除这些页面的代码:<?page
浏览 1
提问于2022-05-02
得票数 -4
2
回答
从
URL
获取
父
资源
、
我认为最简单的方法是检查主控制器的
URL
,但1)我不知道怎么做,2)它看起来很不可靠,好像应该有更直接的方法。 在这里我还想了解一下Rails的一些基础知识--有什么关于如何实现所需功能的建议吗?
浏览 4
提问于2010-10-31
得票数 1
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
实时音视频
即时通信 IM
云直播
活动推荐
运营活动
广告
关闭
领券