Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
Copa WPB
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Cómo añadir widgets de WordPress en el contenido de entradas y páginas

Los widgets de WordPress permiten a los usuarios añadir distintas funcionalidades a sus entradas y páginas sin escribir una sola línea de código. Ya sea para mostrar entradas recientes, feeds de medios sociales o HTML personalizado, añadir widgets a su contenido permite crear un sitio más dinámico e interactivo.

En WPBeginner, utilizamos varios widgets en nuestra barra lateral y pie de página para compartir información importante, destacar guías populares y proporcionar recursos adicionales. Al hacer pleno uso de estas áreas, podemos ofrecer contenido adicional que mejora la experiencia del usuario, manteniendo el sitio visualmente atractivo y funcional.

En este artículo, le mostraremos cómo añadir fácilmente widgets de WordPress al contenido de entradas y páginas.

Add WordPress widgets in post and page content

¿Por qué añadir widgets de WordPress en entradas y páginas?

Los widgets de WordPress son bloques de contenido que se suelen añadir a las barras laterales, cabeceras, pies de página y otras áreas. Ofrecen la flexibilidad de añadir un montón de diferentes funcionalidades y características a la estructura / disposición / diseño / plantilla de su sitio de WordPress.

Por ejemplo, puedes mostrar tus últimas entradas, añadir un formulario de contacto mediante un bloque de widgets y mucho más. Lo mejor es que no tienes que editar código para añadirlos.

Anteriormente, los widgets de WordPress solo podían añadirse a zonas de widgets como la barra lateral, la cabecera o el pie de página. Sin embargo, con el editor de bloques de WordPress, ahora puedes añadir widgets fácilmente a las entradas y páginas de tu blog.

Por defecto, WordPress ofrece diferentes tipos de widgets para archivos, calendarios, categorías, HTML personalizado, shortcodes, últimos comentarios, entradas recientes, RSS, características de búsqueda, iconos sociales, etc. Muchos plugins y temas de WordPress también ofrecen sus propios widgets.

Dicho esto, veamos cómo añadir widgets de WordPress a entradas y páginas.

Cómo añadir widgets de WordPress al contenido de entradas y páginas

En primer lugar, deberá editar una entrada/página de WordPress existente o añadir una nueva.

Una vez que esté en el editor de contenido de WordPress, haga clic en el botón “Añadir bloque” (+) para añadir un nuevo widget.

A continuación, desplázate hasta la sección Widgets y arrastra y suelta el bloque de widgets que quieras añadir al contenido.

Select a WordPress widget

Supongamos que desea mostrar las últimas entradas de su blog de WordPress dentro de su contenido y aumentar la participación.

Para ello, basta con hacer clic en el widget Últimas entradas, y tus artículos recientes aparecerán en el contenido.

Latest post widget block

Verás más ajustes en el panel de bloques a tu derecha para editar y personalizar las opciones de tus widgets.

Mediante los bloques de widgets, también puedes añadir shortcodes y HTML personalizado a tu contenido sin necesidad de escribir código. Esto hace que sea muy fácil añadir personalización avanzada y ganar más control sobre el aspecto de su sitio.

Si también desea añadir un widget personalizado a su página/entrada, consulte nuestro tutorial sobre cómo crear widgets personalizados en WordPress.

Del mismo modo, también puede utilizar un bloque de widgets para cualquier plugin de WordPress que esté utilizando en su sitio web.

Por ejemplo, si está utilizando WPForms, puede añadir su formulario al contenido utilizando el bloque WPForms.

Cuando añada el bloque WPForms al contenido de sus entradas y páginas, sólo tiene que seleccionar su formulario en el menú desplegable del propio bloque.

Add the WPForms Block to Any Post or Page and Select the User Login Form

Una vez que haya terminado, siga adelante y publique su entrada de blog o página en su sitio web de WordPress.

Bonus: Widgets útiles para su sitio web

Ahora que ya sabes cómo añadir widgets a tus páginas y entradas, también debes recordar añadir solo widgets selectivos. Si añades widgets innecesarios, tus páginas pueden parecer abarrotadas, lo que dará lugar a una mala experiencia de usuario.

Por ejemplo, puedes instalar y activar WP Call Button. Después de eso, puede establecer los ajustes del plugin y luego añadir su widget a su página de contacto para añadir un botón de llamada ahora.

Para más detalles, consulte nuestra guía práctica sobre cómo añadir un botón de llamada en WordPress.

Add the WP Call Button widget block in a page or post

Del mismo modo, puede añadir un widget RafflePress para añadir un sorteo, un widget Compact Archive para mostrar sus archivos, un widget WP Simple Pay para añadir un formulario de pago o un widget Social Count para mostrar sus seguidores en los medios sociales.

Todas estas opciones pueden ayudar a impulsar la participación, generar clientes potenciales y aumentar las conversiones en tu sitio. Para obtener más información, puedes consultar nuestra selección de expertos sobre los widgets de WordPress más útiles.

Esperamos que este artículo te haya ayudado a aprender cómo añadir widgets de WordPress al contenido de entradas y páginas. Puede que también quieras ver nuestro tutorial sobre cómo añadir widgets personalizados al Escritorio de WordPress o nuestra guía para principiantes sobre revisiones de entradas en WordPress simplificadas.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Descargo: Nuestro contenido está apoyado por los lectores. Esto significa que si hace clic en algunos de nuestros enlaces, podemos ganar una comisión. Vea cómo se financia WPBeginner , por qué es importante, y cómo puede apoyarnos. Aquí está nuestro proceso editorial .

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

El último kit de herramientas de WordPress

Obtenga acceso GRATUITO a nuestro kit de herramientas - una colección de productos y recursos relacionados con WordPress que todo profesional debería tener!

Reader Interactions

68 comentariosDeja una respuesta

  1. Hove

    It does not work for me: “Widget not in any sidebars”.

    • WPBeginner Support

      You would want to first ensure your widget you’re trying to add works in a regular widget area

      Administrador

  2. Mick Holmes

    Fantastic! Thank you!

    • WPBeginner Support

      You’re welcome :)

      Administrador

  3. Pat Walter

    THANK YOU SOOO MUCH FOR THE amr shortcode any widget. I have tried and tried to get other shortcodes working, but could not. But your plugin really helped me. Thanks again.

    • WPBeginner Support

      Not our plugin but glad our recommendation could help you :)

      Administrador

  4. Hannah

    Hello,

    Is there anyway you can show us how to do this WITHOUT using a plugin? Please let me know, thank you.

    Sincerely,
    Hannah

    • WPBeginner Support

      We will be sure to add that to our tutorials where it would make sense but writing out the code for a custom plugin would act the same as if you were installing a plugin to handle this. :)

      Administrador

  5. Edu Hoffmann

    Thanks for sharing!
    This tip was very usefull and save lots of my time

    • WPBeginner Support

      Glad our guide could be helpful :)

      Administrador

  6. Chris Beller

    Hi I just tried doing this in block editor and I cannot find a way to get the widget block to the right of my posts…. Like how the sidebar looks on my blog page. How can I do this?

    • WPBeginner Support

      If you mean you want your widgets on the side widget area, you would want to reach out to your theme’s support for if there is a widget area there for posts and pages.

      Administrador

  7. Danny

    Thanks for this.
    What will be the name of the “Top Posts & Pages Widget” by Jetpack ?

    • WPBeginner Support

      It should use that name, if not you would want to reach out to the plugin’s support and they should be able to assist.

      Administrador

      • Danny

        Ok,
        Another thing:
        I tried testing it on sidebar and I got something like: There is nothing to see here (meaning there are no new posts, or so i thought)
        Is there a way to show my most popular posts, no matter the date it was published?

        • WPBeginner Support

          You would want to reach out to the support for the popular posts widget that you are using for what they use for showing the posts.

  8. Erik

    Great tool, works well. No hassles installing and setting up. Thanks

  9. Tivon

    Hi,

    I can’t seem to add another icon. When I click the button nothing happens.

  10. Karan

    Not working on clipper them

  11. Andres

    How can I add a widget to the Post Page (i.e Blog)?

    • Yo

      You have to add the amr widget plugin to do that. Its easy though.

  12. Siddiqa Pathan

    Perfect! Thank you so much for the Tutorial!

  13. Pete

    AMAZING! – thank you so much. You have saved me from pulling any more hair out..

  14. marsha

    guys….please help me….
    what should i do to make wordpress download manager and easy digital download run into native worpress post…i dont want to make a post into their plugin but wanted to post something in my native wordpress post…what should i do then???
    so i can get the valuable thing both of this plugin just in my native wordpress

    help me please

  15. karyn

    Hi I really don’t understand these codes and html things. I want to add the categories widget in my archives category page. I also want to add the monthly archives widget to the very same Archives page wjat do I do? I am really lost.

  16. Shona

    Amazing – worked perfectly. Thank you for this useful tutorial!

  17. Carol

    works like a charm, thanks so much!!!

  18. Palla Sridhar

    Hello.
    I actually have a different requirement.
    I want to add some text and html link inside post content for all posts with the same category. For a different category, I want to include different text and html link. Hope you understand. Please help

  19. Inam U Khan

    It’s helpful post if anyone wants to use any widget within a post or a page.

  20. Rahul

    hi there, how can i use text widget in post. i used code [do_widget text] but it isn’t working. i want to insert image slider in text widget please help me with this way or any other way. thanks

  21. channing

    this isn’t working properly.

    I’ve installed the plugin and pasted the code at the bottom of the page, and when i push preview the widget ends up being the header as opposed to showing up where i put it.

  22. JB

    Is this supposed to work with the Customizr theme? The widgets seem to work in left and right side bars, but not within content. I even installed a plugin that provides widget IDs, so I can include proper ID in the [do_widget ] short code.

    How can I fix this?

  23. Jeffrey Beckers

    Hi,

    I’m using your plugin to show the widget of recent topics. But the shortcode isn’t generating in the widget.

  24. Gopi

    This is an amazing plugin. Is there an way to change the design of the plugin

  25. Louis

    Hi, this is a great plugin. Thank you for it.
    Is there a way to change the styles on the widget in the AMR without it affecting the widgets throughout the rest of the site? Mainly I’m concerned with the padding of 20% which centers the content awkwardly on my page. If I change it to 0% in the .widget css it looks great but the widgets on the other pages are all messed up. Is there a way to apply separate CSS to the AMR content without it affecting the other widgets?

  26. Mackenzie

    Thank you for this, it works great in the content of one of my pages. However, it doesn’t seem to work on my homepage. The homepage edit area IS different since I have to go to theme options>appearance instead of the individual page…Wordpress just gives me a place to add text, although I use HTML there for other things that seem to work fine. I tried adding the shortcode to the “home” edit page also with no luck.

    Another page on this site said to add the following to functions.php in my child theme:
    add_filter(‘widget_text’, ‘do_shortcode’);

    But just adding that doesn’t help either. There must be some setting with the homepage that won’t allow this. Any ideas? Thanks

  27. Coach Maria

    Would this work to put content at the bottom of each post? (Like a subscription form?)

  28. Sudhakar Goverdhanam

    It worked fine, Thanks

  29. Zaheer Abbas

    Thank u …. Newsletter plugin now working in pages and posts as well as it works only in right sidebar

  30. gmanob

    I downloaded and activated this plugin then I go to Appearance – Widgets but cannot find Shortcode. Any ideas? Thanks!

  31. Andrea Valgoi

    Hello, I have this problem. The widget on a specific page (which works perfectly) overlaps the menus if i scroll down.

    Any ideas how to solve it?

  32. Yuriy

    Awesome! Thank you! Great plugin! It completely meet my expectations!

  33. Asad Iqbal

    Its a pleasure for me to use this plugin.Very nice approach .

    Thanks .

  34. Nicole @ The Pixel Boutique

    Thank you! Just what I needed to make a separate page for Jetpack subscription signup. Great plugin I’ll use often. :)

  35. anand kumar

    how i get short codes for php/text widgets .
    this plugins is not showing any thing for these

  36. Jessi

    This plugin is perfect! I have a question though: How does one align the widget to the left of the post with the text wrapping around it? What is the exact CSS code that needs to be used?

  37. Shonda

    Love your widget. However, how do you edit a widget to be able to use it on more than one post with different data? For instance, the widget I am using ask what category and how many post in that category I want to display.

    As it stands, I have to edit the widget in the short code area, then I can place it in one page. Now I want to add the widget to two other pages with a different category and # of posts. Thanks in advance.

    • WPBeginner Support

      you can add multiple widgets by dragging them into shortcodes sidebar on the widgets screen and using the widget id to display it in the post.

      Administrador

      • Paul

        Thanks a lot for this plugin !! Me too I would like to post the same widget in different pages but where do you find the widget id ?

  38. Sameer Verma

    Hi,

    Is there anyway to display the widget id in all post. I want to display a widget below post in all type of posts .

    Actually i need a share this site below to all posts and pages .
    How i can??

  39. rianne

    Hey! I added the widget in the main sidebarthing at the widget page and put the code in the page. I see the widget, wich is really cool, but i also see this message:

    Sidebar Shortcodeswith sidebarid Shortcodes empty or not defined.
    Widget dooodl! not in sidebar with id Shortcodes and with name Shortcodes

    How can i delete that? And why is it there?
    thanks! greetings

    • WPBeginner Support

      The widget you want to display on the page, you need to drag and drop that widget to the shortcodes sidebar first. Then use the shortcode in a page to display the widget.

      Administrador

  40. Krishna veni

    Hi,

    Is there anyway to display the widget id in all post. I want to display a widget below post title in all post

    Regards
    Krishna Veni

  41. Cindy tucker

    Help! I want to place a subscription widget under each post and I don’t know any code. How do I do this?

  42. Flame Denise

    How about if mw widget is a Text with a title “Our Services”?
    All these shortcodes don’t work:

    [do_widget Text: Our Services]
    [do_widget Text:Our Services]
    [do_widget “Text: Our Services”]

    • Alexander Bradley

      Don’t know why the writer didn’t get back to you. I had the same issue but found that the title for the Widget is just called Text. Try that and see if it works. Not sure what happens if you have multiple widgets called Text but I guess I see soon enough.

  43. Daniel Nielsen

    Hi

    What to call it if you wanner use the same widget more then one time in one page:

    [do_widget count down]
    &
    [do_widget count down]

  44. Ashish

    for example
    [do_widget “recent posts”] this one
    how can i align it in such a way that it appears with a specific height and width
    aligned to the right side of the post or in the middle of the post with the text surrounding it ?
    Is it possible ?

  45. Sarah

    Is this missing any steps? I’ve tried the debug and it still doesn’t work. When I debug, I get a very generic name for the widget “text-4”.

    Is there a way to set the widget I’d manually?

    Is there a problem with the amr shortcode widget plugin? Eg is this still the plugin to use as of aug 2013?

    • Aistis

      Either the plugin has updated or this tutorial was incorrect to begin with.

      Use [do_widget id=recent-posts-2] or [do_widget “Recently in news”]

      • WPBeginner Support

        The tutorial is correct, we double checked it and you are doing exactly what we showed in the tutorial above.

        Administrador

  46. Prashant Ghai

    This is an amazing tip. My blog has a single column theme and this is just the kind of thing i needed. Thanks a lot.

Deja tu comentario

Gracias por elegir dejar un comentario. Tenga en cuenta que todos los comentarios son moderados de acuerdo con nuestros política de comentarios, y su dirección de correo electrónico NO será publicada. Por favor, NO utilice palabras clave en el campo de nombre. Tengamos una conversación personal y significativa.