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

  1. gilomen2
    Posted 3 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?



  2. askwpgirl
    Posted 3 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:


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Widget Entries
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic