Category selected on presentation page

  • Author
    Posts
  • #24636
    Ismael Serrano

    Hi,

    First of all congratulations for this awesome theme.

    It would be awesome if we can select a certain post category to show on the presentation page instead of directly the latest ones.

    ~Ismael

    #25215
    Shaun

    Ismael: Are you talking about choosing a post category in Tempera Settings->Presentation Page where it says “SHOW POSTS ON PRESENTATION PAGE”?

    I agree that Tempera is an awesome theme, love it! This feature would make it just that little bit much better.

    I wanted to display the most recent posts from only one category (using the format this function provides) but can’t seem to using this feature.

    Seems like my only other option is to use the Slides or Cryout columns to display Latest Posts from a Category but I’d rather keep my slides and cryout columns as they are really attractive parts of the template.

    +1 for this feature! And if anyone knows a way to hack this into the CSS (using a child theme) it would be great if they could share.

    #26805
    Ismael Serrano

    Yes, just that Shaun. I would like to be able to show only certain posts on the presentation page by category.

    For example: I have 2 types of posts, “Games” and “Random” and I only want to show the category “Games” on the presentation. This will give the users the ability of control also that feature of this theme.

    ~Ismael

    #27049
    Antje

    I had the same problem and found this solution:
    http://wordpress.org/support/topic/posts-from-specific-category-on-presentation-page

    It’s for Mantra, but I had no trouble at all making it work with Nirvana.

    #31165
    Christoph Werner

    There is no problem to show the content of an individual category on the presentation page.

    What I miss is to show content that came from more than one category.
    Imagine you have three categories, but you want show only contents of two of them and not of all or one only.

    This is currently impossible.

    #33495
    Luiz Gonzaga Jr

    Hi , the solution for it :

    Open the file contet-frontpage.php , check the line

    /* 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();

    Just add this ( ‘cat’=> 1 ) .

    AFTER CHANGE ..

    /* 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();

    And choose the ID for category you want.

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

The topic ‘Category selected on presentation page’ is closed to new replies.