Grow your CSS skills. Land your dream job.

Can this be done in WordPress?

  • # May 22, 2009 at 12:35 am

    Hi everyone, this is my first time to post here, so please bear with me.

    I’m doing this project where the over-all look of the site will be like this: [img]http://img.photobucket.com/albums/v323/kwicky21/design-mockup.jpg[/img]

    If you notice, there are menu items across the top of the page, and there are also links along the right side under the "links" heading.

    My question is this: if I develop this site using WordPress, will there be a way for me to have those menu items above as pages, and the links on the side as pages as well? The ones on the top are pretty static, but I want the user to be able to add links on the side as well. But those links need to be pointed to permanent pages as well; that is, having a URL of "http://www.domain.com/Personal-Injury", for instance, and not "http://www.domain.com/2009/05/01/Personal-Injury", etc.

    Any help will be appreciated.

    Thanks!

    Regards,
    Crix

    # May 22, 2009 at 2:54 am

    You have 2 good options, one, create custom fields called "topbar" and "sidebar", and then on pages that display on top, set topbar to 1 and for the side, sidebar gets set to 1

    Take a look here: http://codex.wordpress.org/Displaying_P … lect_Query for more info.

    # May 22, 2009 at 4:00 am

    Yes, that is very possible.

    You will use wp_list_pages to display the pages for both the top and side navigation: http://codex.wordpress.org/Template_Tags/wp_list_pages
    What I normally do is create all the pages of the website, then I use the "include" property to make the top nav only display certain pages (no matter what pages the client makes later):

    Code:
      < ?php wp_list_pages('include=7,13,26,35); ?>

    Then I leave the side navigation to display all the pages ever created.

    # May 22, 2009 at 4:31 am

    Nice! I didn’t know there were custom fields until now. This helps a lot.

    Thanks a million guys. I’ll be sure to repay the favor one day.

    Regards,
    Crix

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".