Theme or Self Generation

WordPress Theme or Self Generation? That is the question. At the moment I do not have sufficient information. I have quite definite views of what I want the site to look like, and of course it has to work across all device types. I am pretty sure WordPress themes do scale nicely depending on device and orientation, and that would resolve a shortfall in my knowledge. However, I am not sure how to configure WordPress to give me the look and feel that I want, plus a part of me wants to fill in my lack of knowledge. I am also of the opinion that, before you can decide whether a third party product is up to the task, you need to know enough about the task to make a judgement.

On that basis I have decided to bite the bullet and hand-craft the site in VS2012. That will mean, at some point, working out how to integrate WordPress into a hand-crafted site, but I am sure I am not the first person to go down that route.

Actually progressed very nicely down the self generation route. I managed to get the front page and content pages responding nicely to different devices, orientations, and screen widths.  However now has come the time to integrate WordPress fully into my site. (Or perhaps it is the other way round, convert my site over to WordPress structures).

Why have I  decided to do this?  Three reasons:

  1. My blogs are obviously not part of the overall site. They look and respond differently, so I definitely need to ‘Theme’ the blogs to match the rest of the site.
  2. WordPress does an excellent job (as you would expect) of segregating Content from Layout, and whilst the mechanisms I had put in place did provide for Layout templates it did not match the separation achieved by WordPress.
  3. I could have continued down the Self Generation route and, aided by the WordPress concepts, developed my own system, but then I would still have needed to integrate the WordPress blogs. 

So I have decided to integrate and use WordPress to manage both blog and page content. 

How to go about this? Well the step is to define precisely what I want to achieve. The second step would be to the Codex to determine how I go about it.

What exactly do I want to achieve:

  1. Want the Blogs presented in Quintic Style
  2. Want Pages available from Initial Home page
  3. Want the pages constructed using WordPress – ie Content from D/B, Presentation from Templates
  4. Want the sites initial home page as is. (Need to see how WordPress deals with differing screen sizes and orientations.)

Looking into Pages.

Pages in WordPress are retained in the same structure as Posts. indeed they appear to be almost the poorer brother of Posts. The D/B table, wp_posts, holds posts, pages, images, etc. with the post_type column indicating whether the entry relates to:

  • Post
  • Page
  • Image
  • (Others…)

The wp_post table also includes the following columns which are of interest in knowing about the data retrieval:

  • post_content – The actual content for pages and posts (Not images)
  • post_title – Visible title
  • post_name – as required by url request.
  • post_mime_type – Used for images and other content
  • guid – unclear at present, looks like a url, but also has an Id, which is post_type dependent. (That is a post might have an id of say p=1 where a page would  have an id of page_id=1)

First thing I am going to do is create a page based on the index.php from the WordPress theme. This is php that loads the Posts loop.

 

 

 

 

 

 

Leave a Reply