如何重定向链接到其他页面,而不是默认在wordpress [英] how to redirect the link to other page rather then default in wordpress

查看:110
本文介绍了如何重定向链接到其他页面,而不是默认在wordpress的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



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

 <?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(); ?>

我想显示一个我在页面构建器而不是默认页面中创建的页面



请指教。感谢您预期

解决方案

在您的wordpress中安装插件ACF,并按照


Perhaps this is the code that linking a default page:

<?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(); ?>

I want to display a page that I build in page-builder instead of default page

Please advise. Thanks in anticipation

解决方案

install plugin ACF in your wordpress and follow this TUTORIAL

If you still have any problem let me know

Update:
If you are not easy with this plugin then I'll strongly recommend another very easy plugin "Redirection".

Just copy paste source and target URL's and you are done

这篇关于如何重定向链接到其他页面,而不是默认在wordpress的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆