• I have a conflict of interest that needs to be resolved…

    I have my front page set to latest blogs (set in the Reading function), but I only want to have selected blogs shown and remain static….

    The conflict arises as I add new blogs and the latest blogs take precedence.

    I want those new blogs to only show up in other categories and not in my featured blog page (front page)

    Do I need to get a plug in, perhaps “Map Categories to Pages” and make pages assigned to categories, and then assign the static page to a category page?

    Or maybe there is a simpler method?

    Please take a look at my site https://homemaintenancefordummies.com

    The bottom 2 blogs I only want to be shown on the featured page (home).

    Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • Could be as simple as adding this

    <?php
    $cat_id = get_cat_ID('Featured'); // or whatever category you want
    query_posts('cat='.$cat_id);
    ?>

    just before ‘<?php if (have_posts()) : ?> ‘ in your Page Template.

    Thread Starter Rick Patterson

    (@rick-patterson)

    Thanks for your answer…no luck, however I did find this in my function.php ….

    function cats_to_select()
    {
    	$categories = get_categories('hide_empty=0');
    	$categories_array[] = array('value'=>'0', 'title'=>'Select');
    	foreach ($categories as $cat) {
    		if($cat->category_count == '0') {
    			$posts_title = 'No posts!';
    		} elseif($cat->category_count == '1') {
    			$posts_title = '1 post';
    		} else {
    			$posts_title = $cat->category_count . ' posts';
    		}
    		$categories_array[] = array('value'=> $cat->cat_ID, 'title'=> $cat->cat_name . ' ( ' . $posts_title . ' )');
    	  }
    	return $categories_array;
    }

    any suggestions?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘featured blogpage exclusion?’ is closed to new replies.