Jump to content

Recommended Posts

In the past I have messed around with WordPress templates and their CSS modifications. I started to dabble in template creation and I was wondering if I could use WordPress strictly for content creation and management? Instead of creating a template with header.php and sidebar.php and all that crap, can I just query the WordPress database? Mainly, I just don't want to have to upload a template.

 

Any articles on this if possible? I Googled around in my spare time, but no in depth research.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/277475-wordpress-only-for-content/
Share on other sites

I think that I am having a hard time understanding the folder structure of a WordPress template. For example, I have your website home page that I would like to look different then my posts or inside pages. The content is different as well as the look and style.

 

Maybe I am researching for the wrong word or phrase? Like a multi-layout theme.

 

Sorry if I am conveying this poorly. I am doing multiple things at once right now.

Sure, you could write code to query a WordPress DB and pull out the info you want. You just have to figure out what information you need and from which tables you get it.

That is what I thought. Would I have to use the WordPress php code or can I just use my own queries?

 

Is this a best practice? If not what is?

That is what I thought. Would I have to use the WordPress php code or can I just use my own queries?

Wordpress stores its content in a mysql database so you can use whatever you would like to access it.

 

Is this a best practice? If not what is?

It seems like a pretty daft idea. If you want to use Wordpress as your back end it seems logical that you should be using Wordpress themes fro the front end. It will be much less work in the long runas its already designed to work with there data structure.

 

Which buy the way are fucking terrible.

 

If your really thinking about accessing Wordpress's data yourself, just drop Wordpress all together. You gain nothing but a nice backend interface.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.