• [In English]

    Hello everybody,

    How do I create a dynamic page in wordpress? I want to create a page that shows only the entries in a given category. By adding a new entry, in addition to automatically add the entry to the main page, I also wish to add this post to another page if the entry belongs to a category.

    How can I do? Thank you very much!!
    ————————————————————————

    [En Español]

    Hola a todos,

    ¿Como puedo crear una pagina dinámica en wordpress? Quiero crear una pagina que solo muestre los post de una determinada categoría. Cuando añada un nuevo post, además de insertarse automáticamente en la pagina principal, me gustaría que se insertara también en esta pagina si pertenece a una categoría determinada.

    ¿Como puedo hacer esto? Muchas gracias!
    ———————————————————————–

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    You can make a new template and then use that template for the category page rather than the default one.

    http://codex.wordpress.org/Pages

    Once you make a template you can use the same code on it that you use on your index page but you will also want to add a query before the loop. The query could pull posts from just the category recipe.

    You can use something like

    <?php query_posts(‘category_name=wordpress&showposts=5’); ?>

    right before this
    <?php while (have_posts()) : the_post(); ?>

    name=name of category, showposts=number of posts that you want to display.

    Thread Starter gponsu

    (@gponsu)

    Kwbridge thank you very much.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘dynamic page in wordpress’ is closed to new replies.