Fetch data from wp_posts of Two different databases

Viewed 17

I want to fetch record from wp_posts table but the condition is that my latest data is stored into DB1 database and the old data before January 2022 is stored into DB2 database. Now i want to fetch data from both databases and show on my page and when user scroll then show all new data and once the limit of new data crosses then fetch data from the another database DB2. Can we do this in wordpress ?

0 Answers
Related