How to convert rows in an existing database into posts using a template?

[ad_1]

Let’s say I have an existing database and each row is a page. It has the name, description, image links, etc

Then I have a WordPress template (not sure if that’s the right term) for what a page should look like – title at top, image gallery on left, description on right.

I’m assuming there is a way to take each row in my database, fill in the template with its values, and make that a page (or post?) on my site. After all, this pretty much what WP is doing under the hood itself I think. Yet I can’t seem to find directions on how to accomplish it. Any pointers?

[ad_2]
1 Comment
  1. In my last project, I made a wordpress plugin to display data from a specific table in my database.

    I am just a beginner in PHP SQL but I used chatGPT to assist me and I managed to do it. I would advise you to check chatGPT to make what you need.

    You would use a specific page template and probably a custom post type for that, not a plugin probably (my plugin allowed for shortcodes to be placed on the pages I wanted, not on every pages like you seem to want).

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer