Forums

[resolved] Post to static Page using Arthemia theme? (7 posts)

  1. gabby30
    Member
    Posted 2 years ago #

    I am using the Arthemia theme and I want to know how do you post to a specific page? Thanks.

  2. Andrea_r
    team pirate
    Posted 2 years ago #

    When you create a Post or Page from the backend of WordPress, it creates that for you. It is not theme dependent.

  3. gabby30
    Member
    Posted 2 years ago #

    What do you mean?

  4. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    When you create a new post, tick the name of the category you want that post to be displayed under.

  5. gabby30
    Member
    Posted 2 years ago #

    Yes but it still post to the front page of my blog. What if I only want it displayed on my third page?

  6. renato_s
    Member
    Posted 2 years ago #

    Here's what you have to do, in a nutshell:
    1. Duplicate archive.php and rename it the way you want (eg. "blog.php").
    2. Make it a page template: http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates
    3. Customize its main query to show the posts of a specific category (change the category ID by the correct one):

    <?php//Add this before your Loop ?>
    <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ?>
    <?php query_posts("cat=2&showposts=10&paged=$paged"); ?>
    <?php//Here your Loop starts?>
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    ...

    4. Create the static page you want to show the posts and assign it the page template you just created;
    5. Exclude the category from the home page:http://codex.wordpress.org/Template_Tags/query_posts#Exclude_Categories_From_Your_Home_Page

  7. gabby30
    Member
    Posted 2 years ago #

    It works! Thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.