【问题标题】:how to redirect the link to other page rather then default in wordpress如何将链接重定向到其他页面而不是wordpress中的默认值
【发布时间】:2015-12-10 18:29:24
【问题描述】:

也许这是链接默认页面的代码:

<?php if($ct_options['ct_link_title'] == 'Yes') { ?>
<h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
<?php } else { ?>
<h4><?php the_title(); ?></h4>
<?php } ?>
<?php the_content(); ?>

我想显示我在 page-builder 中构建的页面而不是默认页面

请指教。感谢期待

【问题讨论】:

  • 自定义链接是什么意思?类似http://customwebsite.com/index.php/services/My-First-Service-test/
  • @RajuDawadi 我更新了我的问题。请检查
  • 那么不要使用永久链接。只需使用&lt;h4&gt;&lt;a href="https://google.com/"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h4&gt;&lt;br&gt; 希望我理解正确。
  • 但是没有一个链接。我有 6 个不同的链接,例如明天可能有 1000 个链接,我将如何处理它们?
  • 在这种情况下,我建议您使用 Advance 自定义字段插件。 link 。并使用带有转发器的自定义字段。

标签: php css wordpress


【解决方案1】:

在您的 wordpress 中安装插件 ACF 并关注此TUTORIAL

如果还有问题,请告诉我

更新:
如果你不喜欢这个插件,那么我强烈推荐另一个非常简单的插件“重定向”。

只需复制粘贴源和目标 URL 即可完成

【讨论】:

  • 我安装成功但不知道如何使用它
  • 你看过我提到的教程了吗?
  • 可以,但还是做不到
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2018-07-10
  • 2022-06-18
  • 1970-01-01
  • 2015-07-14
  • 2017-08-22
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多