-
AuthorPosts
-
September 24th, 2014 at 01:47 #27356AudioElements
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.
September 24th, 2014 at 15:39 #27371KayCryout Creations mastermindHi,
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: Mantra • Nirvana • Parabola • Tempera
Tutorials: custom menus • translating theme • installing theme • category page with intro • disabling comments Wordpress: child themes • categories/posts
Before making any modifications to your theme we strongly recommend using Child Themes.November 26th, 2014 at 05:29 #28396EvanI so want that, it would be perfect for my site! 8D
please do implement it in parabola
November 29th, 2014 at 00:15 #28435Luiz Gonzaga JrHi , 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
December 8th, 2014 at 13:07 #28566PrasadHi –
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(); -
AuthorPosts
The topic ‘Posts by category for Presentation Page’ is closed to new replies.