Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS WordPress Loop and Structuring

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #23684
    chad86
    Member

    Hi Guys,

    So this is the structure I want to go with for my site, chadwik.us.

    I need my page to be structured as follows:

    Home – (Static Page that has recent articles from my blog page posted on it)

    My Work – (Uses the loop to grab articles about recent projects that I have done)

    My Services – (Uses page.php)

    Blog – (Uses the loop to grab articles that everything but what is in My Work)

    Contact – (Uses a special_template.php so I can include forms).

    I have been successful up to the pages that I want to use the loop on.

    What is the best way of going about this? So far I have tried creating special_templates that has the loop code in them for the two pages that I need to use it on. The problem I am seeing is that it is recognizing that it is a page and using both page.php and the special_template. How do I get this to work without having my url’s something like chadwick.us/categories/blog. You can see I am currently trying to query in certain categories but it is doing something weird and list all the posts at the top and what ever is in those posts at the bottom. Any help would be awesome.

    Thanks

    #51728
    chad86
    Member

    Thanks Chris,

    I also found this to work too which gets around the whole long URL (Or at least that’s the way I got it to work).

    Create a page called Blog or any page that you want to use the loop on. Create a new .php template and use it on that page with this code in it. I am now looking at the posts through Firebug to style them accordingly

    Code:

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.