Grow your CSS skills. Land your dream job.

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:

    http://www.cutelittlefactory.com/tutori … 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?

    Cheers.

    # June 25, 2009 at 5:34 pm

    Codex is your friend :mrgreen: http://codex.wordpress.org/Template_Tags/query_posts and http://codex.wordpress.org/The_Loop

    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.

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