Give help. Get help.

  • # April 3, 2013 at 11:14 pm

    I have been trying for months to make a one page WordPress site and have been having a lot of problems trying to do it. I just can’t figure out the best way to make this site. I run into one problem after another. I need to get every post and every page into an unordered list on the homepage so that when you push the nav button for a page or post, it scrolls into view. This would be really easy with html but I am having a heck of a time doing it with WordPress. I can not find one article on how to make a one page wordpress site. Do you have any ideas on this matter of how this could be achieved?

    # April 3, 2013 at 11:28 pm

    To clarify, you want a list of links for all pages and all posts. When you click on those links, you want the content to scroll into view, correct?

    # April 4, 2013 at 1:56 am

    Your $args are okay, but I’m confused about why you are calling for page templates. You’ll only get one shot at formatting the data within this loop.

    Maybe you could try:

    < ?php is_page_template($template); ?>

    Then you could run something like:

    if is_page_template (‘template1.php’)

    < ?php the_title();?>

    < -- ...etc. -->

    else if is_page_template (‘template2.php’)

    < ?php the_title();?>

    < -- ...etc. -->

    and so on.

    # April 4, 2013 at 1:59 am

    Guess I should try to figure out proper formatting for this forum. :)

    # April 4, 2013 at 12:28 pm

    Fixed the formatting for ya.

    # April 4, 2013 at 12:44 pm


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

You must be logged in to reply to this topic.