Posts by category for Presentation Page

  • Author
    Posts
  • #27356
    AudioElements

    Hi… is there any way I can have the posts that show on the presentation page to show based on category… I would like to do this to avoid duplicate posts in the different columns.

    #27371
    Kay
    Cryout Creations mastermind

    Hi,

    That’s a really good idea. While not possible at the moment we’re considering implementing it in a future version.

    Thanks for the feedback!


    Before posting consider reading our short theme debugging instructions.
    Please read the FAQs: MantraNirvanaParabolaTempera
    Tutorials: custom menustranslating themeinstalling themecategory page with introdisabling comments Wordpress: child themescategories/posts
    Before making any modifications to your theme we strongly recommend using Child Themes.
    #28396
    Evan

    I so want that, it would be perfect for my site! 8D

    please do implement it in parabola

    #28435
    Luiz Gonzaga Jr

    Hi , it´s easy to resolve …. just go to content-frontpage.php file .

    There you will find

    /* Start the Loop */
    $paged = ( get_query_var(‘paged’) ) ? get_query_var(‘paged’) : 1;
    $the_query = new WP_Query( array(‘posts_per_page’=>$temperas[‘tempera_frontpostscount’],’paged’=> $paged) );
    while ( $the_query->have_posts() ) : $the_query->the_post();

    And replace for this

    /* Start the Loop */
    $paged = ( get_query_var(‘paged’) ) ? get_query_var(‘paged’) : 1;
    $the_query = new WP_Query( array(‘posts_per_page’=>$temperas[‘tempera_frontpostscount’],’cat’=> 1 , ‘paged’=> $paged) );
    while ( $the_query->have_posts() ) : $the_query->the_post();

    Notice you now have a ‘cat’=> 1 , one means the number of the category you want to show up..

    Bye

    #28566
    Prasad

    Hi –
    I am assuming that I have replace temparas with Nirvanas in this. And by Category num you meant the Cat&TagID that shows up when you hover on the category name.

    Well, I changed the code and it did not work. Here is my code after change where my Cat ID is 49.

    $paged = ( get_query_var(‘paged’) ) ? get_query_var(‘paged’) : 1;
    $the_query = new WP_Query( array(‘posts_per_page’=>$nirvanas[‘nirvana_frontpostscount’],’cat’=> 49,’paged’=> $paged) );
    while ( $the_query->have_posts() ) : $the_query->the_post();

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Posts by category for Presentation Page’ is closed to new replies.