Support » Theme: Hueman » page template: Dynamic Front Page / integrated model

  • Hi Alex,

    I really love hueman and the vast amount of options to customize.

    thx a lot for that.

    now there is one thing i can’t get working (probably because of limited coding knowledge).

    i wanted to create a page template to display static content and post from a certain category in the same page.

    i managed to display recent posts in my static page but without any styling and also not posts from a specific category.

    is there any one who already created a template using integrated model for hueman.

    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi valley_bird. Since you already have it working you could use the WP in_category function to filter the posts.

    Thread Starter valley_bird

    (@valley_bird)

    hi bdbrown, i thought of a function as well,

    while

    $args = array(
    	'cat'=> ot_get_option('featured-category'),
      'caller_get_posts' => 1
    );
    
    if ( $paged > 1 ) {
      $args['paged'] = $paged;
    }
    
    $my_query = new WP_Query($args); ?>

    hels me to just dislay featured posts, i don’t know what to replace 'cat'=> ot_get_option('featured-category'), with to show posts from a category,

    i tried in_category funcion, bu did’t manage to filter any posts ….

    seems like i’m not quite there, still very thankful for help

    This is from the Codex WP_Query reference page which contains examples of all the different parameters:

    Show Posts for One Category

    Display posts that have this category (and any children of that category), using category id:

    $query = new WP_Query( 'cat=4' );

    Display posts that have this category (and any children of that category), using category slug:

    $query = new WP_Query( 'category_name=staff' );

    Display posts that have this category (not children of that category), using category id:

    $query = new WP_Query( 'category__in=4' );
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘page template: Dynamic Front Page / integrated model’ is closed to new replies.