jbrehm2
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Themes & functions outside wordpress & mysql_connectThat looks like it would work … except I actually need to query the wordpress db while I loop through the old db. I need to compare a variable from each record with the post ID. This is sort of an old system written for something else where I’m trying work in a little wordpress integration. The ability to call wordpress functions while I am looping through the data would make the transition super-easy. The other options require a little work, but can be done.
I guess I could also get the data from the old DB, put it in a variable, close the old connection and open the WP connection. Not as easy of a switch since that’s not how the code was originally written, it will work if it needs to — but I’d like to take the easy rout if possible.
Forum: Themes and Templates
In reply to: Themes & functions outside wordpress & mysql_connectI figured I was selecting a different database which was causing the trouble. Somehow using multiple connections is, as far as I can tell, the only solution. So, I guess my question is if there’s some handy wordpress function that I’m not finding to do this … but guessing there’s not.
Writing this page without using built in wordpress functions will work, just a lot more difficult.
Thanks for your reply.
Knew it would be something simple like that. Thanks!
I’m having the same problem with the boxes in each post. Clean install of 3.1, no Excerpt, Trackbacks, Custom Fields, Discussion, Author or Revisions. How do I get them back?