WordPress.org

Ready to get started?Download WordPress

Forums

A Post Filter (I think) (3 posts)

  1. elonjames
    Member
    Posted 7 years ago #

    Good Day everyone. I'm very new here so any help would be appreciated. I would like to have on the front page of my wp to only show post that are in a specific catagory.

    For instance. I'd like to have 10 users on my site submit articles. But I don't the articles to immediately show up. i want to be able to add them to the "Main" category, which THEN would allow it to be seen by the world.

    Is this something really simple that i've just overlooked in the control panel, or is this something that a plug in is needed for?

  2. FernandoNery
    Member
    Posted 7 years ago #

    Well, you can creat users with "Contributor" acess, them they won't be able to Publish any new, so they're not going to apear to visitants of your website. (I don't know if this works)

    And to show only a restrict category at the front page, just add this line before your The Loop (start with this line: <?php while (have_posts()) : the_post(); ?> )at index.php :

    <? query_posts("cat=XX"); ?>

    But in XX put the code of the category that you want.

  3. Koelhoni
    Member
    Posted 6 years ago #

    hello all,

    what i would like to have is a code or a plugin to display the last 5 or 10 articles from a category as a list with links to the articles...

    with the code :

    <?php query_posts('category_name=xxxxx&showposts=5'); ?>

    i have what i want but is not showned as a list, can i format the output data below de query_posts code ??

    (sorry my poor english)

    tks

Topic Closed

This topic has been closed to new replies.

About this Topic