The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Add Widget to Static Page (4 posts)

  1. rpainter
    Posted 6 years ago #

    Hello everyone. I am wondering if there is a plugin that will allow me to add a widget to the content of a page. I have a static page set up as my homepage, and I would like to include the "recent posts" widget at the bottom of the content. I know that I can just put that in the sidebar, but I would really like to include it in the page content. Is this possible? Thanks.


  2. lorenzo
    Posted 6 years ago #

    It is possible, but you need to add the WP loop somewhere in the 'static' page.

    i'm not sure how you created this static page, but you can have a custom template homepage added in your theme.

    see this for example:

    assuming you know already all this stuff, and you have the core loop (but not calling posts) you can have the function call to the 'sidebar' alternative (i.e. one at the bottom) in your template and then you can treat it as a normal sidebar.

    hopefully it will get you started!

  3. toddhalfpenny
    Posted 6 years ago #

    The Widgets on Pages plugin does exactly what you're after without the need for any coding... just the use of a shortcode with where you'd like the widgets to appear in the page.

  4. tarekz
    Posted 5 years ago #

    I am trying to add widgets_on_pages to the main theme page. Is this possible?

Topic Closed

This topic has been closed to new replies.

About this Topic