Skip to main content




La mayoría de los temas de WordPress están configurados para que las últimas publicaciones de su Blog aparezcan en la página principal de su sitio. O, si dispone de una página de inicio estática, sus entradas más recientes aparecen en una página dedicada. Independientemente de cómo se muestren estas publicaciones, en una lista, en una vista en mosaico o lo que be, una cosa sigue siendo la misma: las publicaciones más nuevas aparecen primero.

But what if not want Does your most recent blog post rank that high? Believe it or not, this is a fairly common wish of bloggers across all industries. Let's take some time now to explore some of the reasons bloggers want to hide posts in the first place, and how to do this quickly and easily.

Why hide posts?

Hay varias razones por las que alguien querría ocultar una publicación de su página de inicio. Para empezar, su blog puede ofrecer una gama de tipos de publicaciones, desde breves noticias hasta tutoriales más detallados. Esto último hace que las publicaciones más atractivas aparezcan en una página de inicio debido a que siempre son valiosas y no urgentes. A la vez, si no actualiza su blog con mucha frecuencia, enfatizar su contents de alto valor sobre las noticias hace que su sitio sea más relevante de manera constante.

Perhaps you've recently written a post on a controversial topic and don't want that to be the first thing your visitors see. This is understandable as you don't want to detract from other, perhaps more relevant posts. Or maybe you just want to include posts written by you and not guest bloggers. Or maybe you just want posts from a certain category to appear. The reasons are diverse. The important thing is that you can make this simple change without pain. And you have a couple of options to do it.

Consider creating pages

This takes a bit of planning ahead of time, but is by far the simplest method of preventing certain posts from showing up on your blog's home page; do not make it a post.

En su lugar, cree una nueva página y publique su contenido allí. A continuación, puede optar dónde desea que aparezca esta página. Puede elegir por no tener un link en la página de inicio a esta página si lo desea modificando sus menús. Simplemente no incluya la página en el menú como un enlace y todo debería estar bien. Rápido e indoloro.

Again, this only works if the content in question hasn't been created yet and you don't anticipate having to do it very often. Despite this, it is an easy solution.

Utilice el complemento WP Exclude From Homepage

The easiest way to exclude posts from the homepage is, anyway, by using a plugin (if your homepage is set to show the latest posts). One of the top rated plugins today for this is called WP Exclude From Homepage, which enables you to exclude categories, tags, even page posts from the home page without breaking pagination. You can learn more about the plugin here.

Utilice el complemento WP Hide Post

wp-hide-post-view-e1390421862797-7907590

Now if you have already created content as a post and don't want it to appear on the home page, you can achieve this by installing a plugin. WP Hide Post It is a great option because it is simple and performs this task in a simple way.

Once installed, you are provided with several options in terms of post visibility directly from the post editor:

wp-hide-post-options-9721378

You can choose to delete the post from the home page of your site. At the same time you can remove it from applicable category pages, tag pages and archive pages. You can even choose the option to prevent a specific post from appearing in site-wide search results, as well as on pages dedicated to the author. It's up to you.

You can hide the post in question in all of these ways or just from the home page. Anywhere else you do not seleccione, la publicación aparecerá regularmente con la estructura de enlace normal y todo. Dicho de otra forma, seguirá teniendo un enlace permanente estándar y se incluirá en el mapa del sitio. Esto significa que aún se puede buscar a través de de los search engines y aparecerá en esos resultados, pero no aparecerá en la parte superior de su sitio. Esto al mismo tiempo puede ser útil cuando está creando contenido exclusivo para sus lectores y planea proporcionar acceso a él solo por medio de un enlace directo.

As a side note, this plugin can at the same time be used to hide pages. You have the option of hiding them from the home page or anywhere else on the blog, including site-wide search.

Ocultar publicaciones de fuentes RSS

WP Hide Post can at the same time be used to hide posts from appearing as published in your RSS feed.

Nuevamente, es posible que desee hacer esto si su intención es crear publicaciones que actúen como recursos que no encajan con el estilo o enfoque principal de su blog (pero aún le gustaría clasificar en términos de SEO) o si escribe publicaciones en ocasiones que no están asociadas con el tema y no quieren que estén disponibles para los lectores como lo primero que ven cuando visitan su sitio.

To do this, all you have to do is check the box that says "Hide sources" on the right side of the post editor once the plugin is installed.

Hide categories manually

If you want to hide an entire category from your homepage, you can do so using the previously discussed WP Hide Post plugin or you can manually add a bit of code in your theme. functions.php file to enact the same effect.

Hay un buen tutorial sobre esto en Locoed Web Development. Recuerde hacer una copia de seguridad de su sitio antes de modificar archivos de tema como este. Básicamente, crea una categoría dedicada para las publicaciones que desea ocultar, anota el ID de la categoría, luego pega el siguiente fragmento de código al final del archivo justo antes de «?>» Y reemplaza el «xx» con el ID de la categoría :

function exclude_category($query) {
	if ( $query->is_home() ) {
		$query->set( 'cat', '-xx' );
	}
	return $query;
}
add_filter( 'pre_get_posts', 'exclude_category' );

This code snippet will prevent your chosen category from appearing on your site's home page, which can be useful if you plan to offer multiple channels of content on a regular basis and don't want one of them to mix with your site's main content. . .


With the ability to hide certain posts from your WordPress site homepage in your developer's toolbelt, you get the freedom to create more posts than you want to do without cluttering your site. You no longer have to be afraid to comment on a hot topic or create more content with SEO in mind, as your home page will stay exactly the way you want it to.

Do you hide certain posts from the home page of your site? If so, why? At the same time, what tools do you use to achieve this? We would love to hear your comments.