• Hello! I created a new page in my admin section by selecting Pages > Add New. Worked great, and the link is showing up on my homepage.

    Now, I’d like to insert the PHP to run a loop of posts on the page. I tried inserting the PHP loop code from my templates in there, but it didn’t work (just got a blank page).

    Any advice?

Viewing 2 replies - 1 through 2 (of 2 total)
  • its not done that way….what are you trying to do with posts? Show some from a certain category?

    you need to make a page template with a custom query_posts to display whatever posts you are trying to get, then assign that template to the page

    I can help you more once I know what you are trying to do, or you can search the codex with the terms I just provided you

    Thread Starter thomastolleson

    (@thomastolleson)

    Thanks, Rev. Voodoo. I appreciate the interest.

    I’m building a site to sell records and mp3 downloads (my shopping cart is already set up). I’m using wordpress as the front-end due to it’s more robust offering of pulgins and ease in design. What I’d like to do is have a page that shows Artists, each artist having several releases (with links to each release). On the page of each release there will be multiple format options (Vinyl, MP3 Album, MP3 songs, CD).

    All I’ve done so far is to structure my categories as

    Artist
    -Releases
    –Vinyl
    –CD
    –MP3 Album
    –Mp3 Song

    And I was thinking that for each artist, release, etc. I would create posts that would thread through the categories and appear on the appropriate page.

    Any advice is appreciated. Thanks!

    Tom

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Running WordPress Loop Code in a Page’ is closed to new replies.