Prevent change with new query_posts()

I have to display 12 items of my custom post type on the front page of my theme. However, when I do this, the page title (…) changes to Custom Post Type archive – Page Title.

Since this is the front page, I just want this to have the normal frontpage title, namely Page title – page tag line. Is there any way to set this variable in the new query_posts()? Or to just prevent that the page title changes, when using a new query_posts()?

I don’t mind this happening on sub-pages and such, but on the front page, it shouldn’t change when I filter resutls on post_type.

This is the query I use right now:

query_posts( array(
‘post_type’ => ‘bwps’,
‘posts_per_page’ => 12
));

Read more here:: <a href=https://wordpress.stackexchange.com/questions/307191/prevent-title-change-with-new-query-posts target="_blank" title="Prevent change with new query_posts()” rel=nofollow>Prevent <title> change with new query_posts()</a></p> <div class='yarpp-related'> <h3>Related posts:</h3><ol> <li><a href="http://wordpressrelated.com/custom-post-type-section-selector/" rel="bookmark" title="custom post type section selector">custom post type section selector </a><br><small>I have a custom post type which is named products. Each product will have overview/details/pricing. How can i make a navigation inside my post-type for...</small></li> <li><a href="http://wordpressrelated.com/how-can-i-make-a-page-show-all-posts-gridview-with-slideshow-images-every-post-any-plugin/" rel="bookmark" title="How can i make a page show all posts (gridview) with slideshow images every post (any plugin)?">How can i make a page show all posts (gridview) with slideshow images every post (any plugin)? </a><br><small>I want to make a page show all posts (like that page http://ryanwestphoto.com/), with slideshow on every post instead a thumbnail post Read more here::...</small></li> <li><a href="http://wordpressrelated.com/how-do-you-make-a-custom-post-type-invisible-for-subscribers/" rel="bookmark" title="How do you make a custom post type invisible for subscribers">How do you make a custom post type invisible for subscribers </a><br><small>I am trying to make a custom post type invisible for the user role subscriber. How do I do that? I tried the following, but...</small></li> <li><a href="http://wordpressrelated.com/in-wordpress-custom-post-type-what-is-the-use-singular_name/" rel="bookmark" title="in wordpress custom post type what is the use singular_name">in wordpress custom post type what is the use singular_name </a><br><small>function create_posttype() { register_post_type( ‘movies’, // CPT Options array( ‘labels’ => array( ‘name’ => __( ‘Movies’ ), ‘singular_name’ => __( ‘Movie’ ) ), ‘public’ =>...</small></li> <li><a href="http://wordpressrelated.com/specific-template-for-subcategory-of-custom-taxomy/" rel="bookmark" title="Specific template for subcategory of custom taxomy">Specific template for subcategory of custom taxomy </a><br><small>I’ve a custom post type that I manage with a custom taxonomy. I’ve made a template: taxonomy-brand.php, to show the top level categories of the...</small></li> </ol> </div> </div><!-- .entry-content --> </div> </div> </article><!-- #post-## --> <nav class="navigation post-navigation" role="navigation"> <h2 class="screen-reader-text">Post navigation</h2> <div class="nav-links"><div class="nav-previous"><a href="http://wordpressrelated.com/output-post-with-acf-fields-into-other-post/" rel="prev">Output Post with ACF Fields into other Post</a></div><div class="nav-next"><a href="http://wordpressrelated.com/insert-sponsor-logo-in-custom-own-theme/" rel="next">Insert Sponsor logo in custom own theme</a></div></div> </nav> <div id="comments" class="comments-area"> <div id="respond" class="comment-respond"> <h3 id="reply-title" class="comment-reply-title">Leave a Reply <small><a rel="nofollow" id="cancel-comment-reply-link" href="/prevent-change-with-new-query_posts/#respond" style="display:none;">Cancel reply</a></small></h3> <form action="http://wordpressrelated.com/wp-comments-post.php" method="post" id="commentform" class="comment-form" novalidate> <p class="comment-notes"><span id="email-notes">Your email address will not be published.</span> Required fields are marked <span class="required">*</span></p><p class="comment-form-comment"><label for="comment">Comment</label> <textarea id="comment" name="comment" cols="45" rows="8" maxlength="65525" required="required"></textarea></p><p class="comment-form-author"><label for="author">Name <span class="required">*</span></label> <input id="author" name="author" type="text" value="" size="30" maxlength="245" required='required' /></p> <p class="comment-form-email"><label for="email">Email <span class="required">*</span></label> <input id="email" name="email" type="email" value="" size="30" maxlength="100" aria-describedby="email-notes" required='required' /></p> <p class="comment-form-url"><label for="url">Website</label> <input id="url" name="url" type="url" value="" size="30" maxlength="200" /></p> <p class="form-submit"><input name="submit" type="submit" id="submit" class="submit" value="Post Comment" /> <input type='hidden' name='comment_post_ID' value='160131' id='comment_post_ID' /> <input type='hidden' name='comment_parent' id='comment_parent' value='0' /> </p><p style="display: none;"><input type="hidden" id="akismet_comment_nonce" name="akismet_comment_nonce" value="6c2db3ce61" /></p><p style="display: none;"><input type="hidden" id="ak_js" name="ak_js" value="127"/></p> </form> </div><!-- #respond --> </div><!-- #comments --> </main><!-- #main --> </div><!-- #primary --> <aside id="sidebar-primary" class="widget-area sidebar" role="complementary"> <section id="categories-2" class="widget widget_categories"><h2 class="widget-title">Categories</h2> <ul> <li class="cat-item cat-item-36"><a href="http://wordpressrelated.com/category/wordpress-htaccess/" title="Wordpress .htaccess">Wordpress .htaccess</a> </li> <li class="cat-item cat-item-25"><a href="http://wordpressrelated.com/category/wordpress-actions/" title="Wordpress actions">Wordpress actions</a> </li> <li class="cat-item cat-item-24"><a href="http://wordpressrelated.com/category/wordpress-admin/" title="Wordpress admin">Wordpress admin</a> </li> <li class="cat-item cat-item-38"><a href="http://wordpressrelated.com/category/wordpress-ajax/" title="Wordpress Ajax">Wordpress Ajax</a> </li> <li class="cat-item cat-item-40"><a href="http://wordpressrelated.com/category/wordpress-apache/" title="Wordpress Apache">Wordpress Apache</a> </li> <li class="cat-item cat-item-6"><a href="http://wordpressrelated.com/category/wordpress-categories/" title="Wordpress categories">Wordpress categories</a> </li> <li class="cat-item cat-item-22"><a href="http://wordpressrelated.com/category/wordpress-comments/" title="Wordpress comments">Wordpress comments</a> </li> <li class="cat-item cat-item-27"><a href="http://wordpressrelated.com/category/wordpress-css/" title="Wordpress css">Wordpress css</a> </li> <li class="cat-item cat-item-11"><a href="http://wordpressrelated.com/category/wordpress-custom-field/" title="Wordpress custom-field">Wordpress custom-field</a> </li> <li class="cat-item cat-item-2"><a href="http://wordpressrelated.com/category/wordpress-custom-post-types/" title="Wordpress custom-post-types">Wordpress custom-post-types</a> </li> <li class="cat-item cat-item-7"><a href="http://wordpressrelated.com/category/wordpress-custom-taxonomy/" title="Wordpress custom-taxonomy">Wordpress custom-taxonomy</a> </li> <li class="cat-item cat-item-15"><a href="http://wordpressrelated.com/category/wordpress-customization/" title="Wordpress customization">Wordpress customization</a> </li> <li class="cat-item cat-item-21"><a href="http://wordpressrelated.com/category/wordpress-filters/" title="Wordpress filters">Wordpress filters</a> </li> <li class="cat-item cat-item-8"><a href="http://wordpressrelated.com/category/wordpress-functions/" title="Wordpress functions">Wordpress functions</a> </li> <li class="cat-item cat-item-26"><a href="http://wordpressrelated.com/category/wordpress-html/" title="Wordpress html">Wordpress html</a> </li> <li class="cat-item cat-item-16"><a href="http://wordpressrelated.com/category/wordpress-images/" title="Wordpress images">Wordpress images</a> </li> <li class="cat-item cat-item-28"><a href="http://wordpressrelated.com/category/wordpress-javascript/" title="Wordpress javascript">Wordpress javascript</a> </li> <li class="cat-item cat-item-29"><a href="http://wordpressrelated.com/category/wordpress-jquery/" title="Wordpress jquery">Wordpress jquery</a> </li> <li class="cat-item cat-item-14"><a href="http://wordpressrelated.com/category/wordpress-loop/" title="Wordpress loop">Wordpress loop</a> </li> <li class="cat-item cat-item-12"><a href="http://wordpressrelated.com/category/wordpress-menus/" title="Wordpress menus">Wordpress menus</a> </li> <li class="cat-item cat-item-41"><a href="http://wordpressrelated.com/category/wordpress-mod-rewrite/" title="Wordpress mod-rewrite">Wordpress mod-rewrite</a> </li> <li class="cat-item cat-item-13"><a href="http://wordpressrelated.com/category/wordpress-multisite/" title="Wordpress multisite">Wordpress multisite</a> </li> <li class="cat-item cat-item-35"><a href="http://wordpressrelated.com/category/wordpress-mysql/" title="Wordpress Mysql">Wordpress Mysql</a> </li> <li class="cat-item cat-item-19"><a href="http://wordpressrelated.com/category/wordpress-pages/" title="Wordpress pages">Wordpress pages</a> </li> <li class="cat-item cat-item-17"><a href="http://wordpressrelated.com/category/wordpress-permalinks/" title="Wordpress permalinks">Wordpress permalinks</a> </li> <li class="cat-item cat-item-3"><a href="http://wordpressrelated.com/category/wordpress-php/" title="Wordpress PHP">Wordpress PHP</a> </li> <li class="cat-item cat-item-5"><a href="http://wordpressrelated.com/category/wordpress-plugin-development/" title="Wordpress plugin-development">Wordpress plugin-development</a> </li> <li class="cat-item cat-item-1"><a href="http://wordpressrelated.com/category/wordpress-plugins/" title="Wordpress plugins">Wordpress plugins</a> </li> <li class="cat-item cat-item-4"><a href="http://wordpressrelated.com/category/wordpress-posts/" title="Wordpress posts">Wordpress posts</a> </li> <li class="cat-item cat-item-39"><a href="http://wordpressrelated.com/category/wordpress-redirect/" title="Wordpress redirect">Wordpress redirect</a> </li> <li class="cat-item cat-item-23"><a href="http://wordpressrelated.com/category/wordpress-shortcode/" title="Wordpress shortcode">Wordpress shortcode</a> </li> <li class="cat-item cat-item-10"><a href="http://wordpressrelated.com/category/wordpress-theme-development/" title="Wordpress theme-development">Wordpress theme-development</a> </li> <li class="cat-item cat-item-18"><a href="http://wordpressrelated.com/category/wordpress-themes/" title="Wordpress themes">Wordpress themes</a> </li> <li class="cat-item cat-item-20"><a href="http://wordpressrelated.com/category/wordpress-widgets/" title="Wordpress widgets">Wordpress widgets</a> </li> <li class="cat-item cat-item-37"><a href="http://wordpressrelated.com/category/wordpress-woocommerce/" title="Wordpress Woocommerce">Wordpress Woocommerce</a> </li> <li class="cat-item cat-item-9"><a href="http://wordpressrelated.com/category/wordpress-wp-query/" title="Wordpress wp-query">Wordpress wp-query</a> </li> </ul> </section> </aside><!-- #secondary --> </div><!-- .inner-wrapper --></div><!-- .container --></div><!-- #content --> <footer id="colophon" class="site-footer" role="contentinfo"> <div class="container"> <div class="copyright"> Copyright © All rights reserved. </div><!-- .copyright --> <div class="site-info"> Business Point by <a href="https://promenadethemes.com" rel="designer">Promenade Themes</a> </div><!-- .site-info --> </div><!-- .container --> </footer><!-- #colophon --> </div><!-- #page --> <!-- AdSense Manager v4.0.3 (0.595 seconds.) --><a href="#page" class="scrollup" id="btn-scrollup"><i class="fa fa-angle-up"></i></a><link rel='stylesheet' id='yarppRelatedCss-css' href='http://wordpressrelated.com/wp-content/plugins/yet-another-related-posts-plugin/style/related.css?ver=4.9.8' type='text/css' media='all' /> <script type='text/javascript' src='http://wordpressrelated.com/wp-content/themes/wprelated/assets/js/navigation.js?ver=20151215'></script> <script type='text/javascript' src='http://wordpressrelated.com/wp-content/themes/wprelated/assets/js/skip-link-focus-fix.js?ver=20151215'></script> <script type='text/javascript' src='http://wordpressrelated.com/wp-content/themes/wprelated/assets/third-party/cycle2/js/jquery.cycle2.min.js?ver=2.1.6'></script> <script type='text/javascript' src='http://wordpressrelated.com/wp-content/themes/wprelated/assets/third-party/meanmenu/jquery.meanmenu.js?ver=2.0.2'></script> <script type='text/javascript' src='http://wordpressrelated.com/wp-content/themes/wprelated/assets/third-party/slick/slick.js?ver=1.6.0'></script> <script type='text/javascript' src='http://wordpressrelated.com/wp-content/themes/wprelated/assets/js/custom.js?ver=1.0.3'></script> <script type='text/javascript' src='http://wordpressrelated.com/wp-includes/js/wp-embed.min.js?ver=4.9.8'></script> <script async="async" type='text/javascript' src='http://wordpressrelated.com/wp-content/plugins/akismet/_inc/form.js?ver=4.0.3'></script> </body> </html>