Forums

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

Home Forums CSS creating WP “pages” locally?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #45759
    rwchampin
    Participant

    so as most of you know by my hundreds of WP related forum posts im new to wp lol….im working locally and have everything set up for the most part…. the last thing is that i want to have a blog page of just recent blog entries……is it possible to create a WP “page” locally or do i have to do it in the dashboard the traditional way? and if i can create a page locally how does wp recognize that its a page and not just a php file?

    #139926
    pixelgrid
    Participant

    you have to include a comment to the top of the php file with the template name.

    Template Name: My blog posts.

    then you will have to create a new page to the wp dashboard and chose as a page template the one you created.
    this selection is made in a widget placed to the right.

    #140446
    Alen
    Participant

    In your dashboard go to:

    Pages >> Create Page >> Name it “Recent” >> Then in your theme folder create `page-recent.php` put your (http://codex.wordpress.org/Function_Reference/wp_get_recent_posts) in this file. [code](http://codex.wordpress.org/Function_Reference/wp_get_recent_posts) in this file.

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