title: how to filter the posts of wordpress default post listing by using hook / filter on plugin or function.php page?
body: <p>I am trying to list posts belonging only to a certain category on the default wordpress blog page. I need to do this by adding a filter/action hook via a plugin. I can not edit the theme template files.</p>
  
  <p>I have done this for recent posts listing using the following code:</p>
  
  <pre><code>add_filter('widget_posts_args', 'my_widget_posts_args');
  
  function my_widget_posts_args($args) {
    return array( 'posts_per_page'      =&gt; 10,//set the number you want here
                  'no_found_rows'       =&gt; true,
                  'post_status'         =&gt; 'publish',
                  'ignore_sticky_posts' =&gt; true,
                  'cat'                 =&gt; 52 //$cat -&gt; term_id//the current category id
                 );
  }
  </code></pre>
  
  <p>How do I do the same for the post listing page?</p>