• I’m new to WordPress, and I was attracted to it because it uses PHP. I am coding a site right now in PHP, and I want to incorporate the WordPress tags directly into my page, using the CSS I design from my CSS sheet and laying it out my way. I realize that is phrased pretty childish-like, but I need customization ability, and I hope this is flexible enough. Any help is apprecaited here. I don’t know what code is mandatory to make things work, and what is flexible. For what its worth, I’m coming from MovalbleType, and I was fairly comfortable with using the MovableType formatting, but I was tired of building and rebuilding. Anyway, suggestions or pointing in directions is appreciated. Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Well if you are familiar with what php statements look like, then it should be pretty easy to guess what is needed and what is not.
    As a rule of thumb, anything wrapped in <?php ?> is going to need to be kept. There are of course some funtions included in the demo index.php file that are not absolutely neccesary, but they are good to have.

    I’m still working on a tutorial telling people what it’s safe to change in index.php (I have to revise it for 1.0, so that’s holding things up), but basically WP is extremely customisable. The only things which are absolutely necessary are the php code at the very top of index.php (which calls wp-header.php) and the php code marking the beginning and end of the entry loop. The other php stuff is tags; which can be omitted, moved, or customised with parameters, just like the MT tags. At the moment the only up-to-date listing of template tags is here. If you’re comfortable with MT you shouldn’t have too much trouble adapting to WordPress.

    Thread Starter Anonymous

    I figured that the wp-header.php thing was one of those items that was neccessary. So, if I want to segment the code into different places over the page, do I just need it once? I call segments of my page with the PHP include() function, so it is rather modular. In other words, if I include the top sections on the main page, and just use the rest of the code where needed, I’ll be fine? Thanks for the help so far. I guess I should register for these forums.

    Yes, that should be fine. If you look through index.php, you basically need the stuff at the very top of the file called as early as possible, and from there on the rest is ‘reasonably optional’. You obviously need to keep any parts of the $post loop together wherever you use them (as all relate to the current post being processed inside the loop), but you can place the loop, or any of the the other individual pieces (links, archives, calendar, etc.) pretty much anywhere else.
    =d
    https://www.chait.net

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Customize page’ is closed to new replies.