Forums

How to post on created pages? (4 posts)

  1. myberrymyway
    Member
    Posted 2 years ago #

    Click Here to See My Site

    I have created several pages on my site, and what I need to know is how can I publish different postings on those pages, I can publish different posts successfully within the categories.

    I need to be able to post things on the created pages, without posting in just the one post when you create the page.

    Any help would be extremely appreciated.

    Thank you!
    Email: kristina@myberrymyway.com

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

    Why not post in categories rather than Pages?

  3. myberrymyway
    Member
    Posted 2 years ago #

    The way that my website is set up. I need to be able to post on pages. Plus its a professional preference.

  4. songdogtech
    Member
    Posted 2 years ago #

    You're better off using category template pages than static pages, as they're more foolproof and future-proof.

    But if you want to post on a static page, you'd need to call a new query, something like this, which will display the latest post in mycategory:

    <?php $my_query = new WP_Query('category_name=mycategory&showposts=1'); ?><?php while ($my_query->have_posts()) : $my_query->the_post(); ?><?php the_content(); ?><?php endwhile; ?>

    You have to hard code in your page template, or put it in your page with the page editor and also be able to run PHP so it will execute.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.