I have two profile pages in my Wordpress site, one for Wordpress itself and one for bbPress. I want to combine the two into one profile. I have been able to isolate the code for each set of posts, but a simple include() of the profile URL does nothing. By my guess, unless you can show me a way to do this otherwise, I would need my site to:
- Load my page template as normal
- Load one of the profiles in (I imagine) a separate process
- Insert the rendered HTML output into my second profile template as standard HTML
I would imagine that AJAX would be best here, but is there a way to do this with just PHP? As I said, include() doesn't work, as it would run the PHP code from its new location. And the fact that I have already tried it with no avail says it would not work as well. I assume this is a PHP question as opposed to a Wordpress / bbPress question, hence why I am asking here.
If there is an easier solution, I'm all ears, but I am lost otherwise.