Forums

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

Home Forums Back End tough question about WordPress

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #43882
    cybershot
    Participant

    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?

    #130588
    chrisburton
    Participant

    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?

    #130599
    contentJones
    Member

    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:

    http://codex.wordpress.org/Conditional_Tags#Is_a_Page_Template

    Then you could run something like:

    if is_page_template (‘template1.php’)

    <-- ...etc. -->

    else if is_page_template (‘template2.php’)

    <-- ...etc. -->

    and so on.

    #130600
    contentJones
    Member

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

    #130663
    TheDoc
    Member

    Fixed the formatting for ya.

    #130668
    contentJones
    Member

    Thanks!

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