Forums
(@dchernik)
6 years, 4 months ago
Worked like a charm. Ty.
bcworkz, thanks. I’ve noticed that using $wpdb = new wpdb(...); works only after adding $wpdb->set_prefix('wp_'); on the next line.
$wpdb = new wpdb(...);
$wpdb->set_prefix('wp_');
Another problem is that functions like the_permalink() and the_excerpt() still return the old path even after the connection has been swapped.
the_permalink()
the_excerpt()
Any ideas?
Hmm, this may not be possible, since it requires redefining constants like DB_NAME.
7 years, 10 months ago
The solution in this case was not to replace the theme (which I kept) but to switch the provider from Yahoo! to SiteGround.
Yahoo! has legacy systems and strange configurations, and I don’t recommend it to anyone.
Good advice, it works with Plain permalinks, and I just looked at my theme (which I like), and it was last updated on ?January? ?28?, ?2011. So, I may have to get a new theme. Thanks!
13 years, 10 months ago
OK, got it… getting acquainted with query_posts(). Could have saved myself some time with it rather than hacking my way through.
16 years, 3 months ago
Chrisber, that would mean duplicating content which is something best avoided.