Subscribe to RSS feed Subscribe to RSS Feed or o follow me sígueme on Twitter? en Twitter?
WordPress is WordPress es one of uno de the most popular blogging software today. los blogs más populares de software de hoy. One of its biggest problems is duplicate content creation. Uno de sus mayores problemas es la creación de contenido duplicado. It has been a major concern, and was noticed by WordPress developers. Ha sido una gran preocupación, y fue notado por los desarrolladores de WordPress. They added a new feature, whereby you could show just part of the post on pages other than post-page, by using the HTML comment <!-more–>. Se añade una nueva funcionalidad, el cual podría mostrar sólo una parte del puesto en las páginas que no sean posteriores a la página, utilizando el código HTML comentario <!-More->. You do not have to get your hands dirty by adding the code – just place the cursor where you want the post to be truncated, and click the more tag in the row of buttons in post-editor. Usted no tiene que tener las manos sucias, añadiendo el código - simplemente coloque el cursor donde desea que el puesto que se trunca, y haga clic en la etiqueta de más en la fila de botones en el puesto de editor.
The more tag inserts a link to the post at the place where the post is truncated. La etiqueta más inserta un vínculo para el puesto en el lugar que el puesto que se trunca. The default anchor text is quite boring – you would see the same text on a few million other blogs. El texto de enlace por defecto es bastante aburrido - que ver el mismo texto en unos pocos millones de otros blogs. This can be customized to your taste, and is as easy as sipping tea(if you don't like it, drink coffee/beer). Esto puede ser personalizado a su gusto, y es tan fácil como tomar el té (si no te gusta, tomar un café / cerveza).
Let's do it Vamos a hacerlo
Here are the steps to customize the more tag: Estos son los pasos para personalizar la etiqueta de más:
- In your theme files, open up
index.phpin any code editor, like Notepad, Notepad++ or Metapad. En el tema de archivos, abririndex.phpen cualquier editor de código, como el Bloc de Notas, el Bloc de notas + + o Metapad. - In it, find this bit of code (use Find function): En ella, encuentra este trozo de código (uso Encuentra función):
<?php the_content(); ?>
This code may vary depending on the theme. Este código puede variar en función del tema. However, it will contain the parts<?php the_contentSin embargo, contendrá las partes<?php the_content - Replace that code with : Reemplace este código con:
<?php the_content(" (More...) "); ?> - (More…) is the text that will be displayed. (Más ...) es el texto que se mostrará. To customize it, replace the parts in bold to whatever you want. Para personalizarlo, sustituir las partes en negrita a lo que quieras.
- Save the file and upload it to your server. Guarde el archivo y súbelo a tu servidor.
That's it. Eso es todo. Hopefully, now you've got the text that you want. Esperemos que, ahora que tienes el texto que desee. Wasn't it easy? No era fácil? I told ya' so… Ya le dije "así que ...
Related reading Relacionados con la lectura
- How To: Install WordPress on Windows CÓMO: Instalar WordPress en Windows
- Is domination of WordPress and FeedBurner good? Es la dominación de WordPress y FeedBurner bueno?
- WordPress core dump files WordPress archivos core dump
- Delete post revisions in WordPress Eliminar las revisiones posteriores en WordPress
Is it also called expandable post summary? ¿Es también llamado resumen de entradas ampliables?
I Would suggest you to use Excerpts in front page rather than More. Yo sugeriría el uso de extractos en la primera página y no más. Both does the job, but still excerpts does it better. Ambas hace el trabajo, pero aún no las citas mejor.
@Nirmal: Actually, I use neither more tag nor excerpts. @ Nirmal: En realidad, el uso de etiquetas ni más ni extractos. I use Evermore plugin . Yo uso el plugin Evermore. It is similar to excerpts, but the advantage is that it does not cut off posts indiscreetly, as in the middle of a paragraph. Es similar a las citas, pero la ventaja es que no interrumpa la alimentación puestos indiscretamente, como en el medio de un párrafo.
@Ashwini: I believe you are talking about expandable post in Blogger. Ashwini @: Creo que estamos hablando de entradas ampliables en Blogger. This is different – only applicable for WP. Esto es diferente - sólo aplicable a los GT. It means that only a portion of the post will be shown on any page other than the single(post)page. Esto significa que sólo una parte de la entrada se muestre en cualquier página que no sea el único (después) la página.
Expandable post is different in that it shows the full content on clicking, and also it has full content in the source code, meaning no SEO benefits by using it. Ampliable posterior es diferente en el sentido de que muestra el contenido completo en el clic, y también tiene todo el contenido en el código fuente, es decir, no por SEO beneficios de usarlo.