我更新了数据库中的两个网站网址。但是,Top Menu等超链接仍然会重定向到旧网站。任何想法是什么?我对WP很陌生。谢谢。更新WordPress的网站的网址,但超链接仍然没有变化
update_option('siteurl', 'http://example.com');
update_option('home', 'http://example.com');
编辑:这个网址被改变或者不
<a <?php if($item->hasLinkClasses()) : ?>class="<?php echo $item->getLinkClasses(); ?>"<?php endif;?> <?php if($item->hasLink()) : ?>href="<?php echo $item->getLink();?>"<?php endif;?> <?php if($item->getTarget()) : ?>target="<?php echo $item->getTarget();?>"<?php endif;?> <?php if($item->hasLinkAttribs()) : ?> <?php echo $item->getLinkAttribs(); ?><?php endif;?>>
<?php if ($item->getLevel() == 0) : ?>
<span class="rt-item-border"></span>
你可以给菜单的代码? – Farzad
@Farzad代码已添加。它是龙门框架。 – user2700690