Transferred blog to different url but links still pointing to old site
-
I recently transferred my blog to a different URL(shared host/ip) while still using the same database since its all under the same shared hosting environment. Now my issue is that one of my links point back to the previous location.
Further detail:
I have a post that when gets populated on the homepage has either a read more button to read the entire post or “watch video” link which gets swapped with the read more link with an if statement if a custom field checkbox has been clicked. It directs them to the right video page but now that i’ve pushed the site live, the “watch video” link is going to the staging server link.<?php if( get('video-cb')=='true' ) { ?> <a href="<?php echo get_post_meta($post->ID, "video-url", true);?> " class="get-link">Watch Video</a> <?php } else { ?> <a href="<?php the_permalink() ?> " class="get-link">Read More</a> <?php } ?> </div>
Thanks!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Transferred blog to different url but links still pointing to old site’ is closed to new replies.