Database driven web pages in wordpress
-
We need to create a series of artist pages with an image and info about artists in a show. The easiest way for us to do this is with a bit of php code that grabs the info from a database and inserts it in an html template. We would like to use wordpress to lay out the page and deal with responsiveness to different screens and integration into a wordpress theme for consistency across the site. This, of course, is much easier than hard coding pages for 100 or more artists. Is there some way to do this? Maybe a “GET” url to the php script with the artist ID placed in a wordpress block that would populate that block. Of course, we would need another page with a link to access the artist ID and send it to the artist page script. I can’t figure out if this is possible or how to manage it. It occurred to me it might have to be done at the theme level, maybe with a child theme. But, it is hard to follow all the wordpress code to see how various aspects of a page is generated.
We will also need to generate a page where the info is inserted into the database to begin with. Artists will need to log into that page for security purposes, of course.
It would probably require sessions and am also not sure how this integrates with wordpress as wordpress is probably already using sessions.
Sorry if this is more obvious than I have found it. I’m actually more knowledgeable about php than I am about wordpress, which can be challenging in itself.
Thanks,
—Kenoli
The topic ‘Database driven web pages in wordpress’ is closed to new replies.