WordPress.org

Ready to get started?Download WordPress

Forums

Widget Entries
Possible to reference a specific widget in a template? (2 posts)

  1. gilomen2
    Member
    Posted 2 years ago #

    I would like to be able to pull a specific widget entry's contents into a page by referencing it in a template (similar to placing one via a shortcode). Is there a way to do this right now?

    Thanks!

    http://wordpress.org/extend/plugins/widget-entries/

  2. askwpgirl
    Member
    Posted 2 years ago #

    How I usually do this is to create a new Widget Area in the functions.php and call for that widget area in the PHP template and just add the Widget Entries widget to the widget area under Appearance > Widgets. This makes it easier to swap out different widgets or Widget Entries widgets without having to go edit the PHP template file if the user decides to use something different in that area.

    Here is a very simple tutorial on how to do this:

    http://www.designchemical.com/blog/index.php/website-coding/wordpress-tutorial-adding-a-widget-area-to-your-theme-files/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic