All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

Designing a PHP page to output only specific posts from WP

  • # June 25, 2009 at 3:07 am

    I’m going just getting my head around WordPress and how it operates as a faux CMS. Thanks to Chris for his vids and this article: … wordpress/

    What I’d like to do is design a PHP page that I’m able to send out to a potential client that ONLY displays a list of certain projects (WP posts) that I’ve preselected for their presentation and send them to that URL. I’m aware that I’ll have to design this page in PHP and have it tap into WordPress for the posts. I’m guessing it might have something to do with setting up an array of the posts in PHP and injecting that into the WordPress loop?


    # June 25, 2009 at 5:34 pm

    Codex is your friend :mrgreen: and

    If you’re going to be doing any serious WordPress customization you should read those pages fully as they answer most beginner questions. And in your particular case you are looking for the ‘post__in’ parameter of query_posts.

    Best of luck and keep us posted on how it’s going.

    # June 29, 2009 at 2:16 pm

    To further Dave’s point:

    Remember that while working in the WP Loop, you’ll almost always be using WP Tags. You should be saying things like "Template" instead of "PHP Page", as an example.

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

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed