• Hi there,

    I’ve been dabbling with my front page’s PHP code. In one section of my site, I’d like to display a simple list (li) of what I’m currently working on. Right now, that list is inserted via HTML into the PHP itself.

    I’m very weary to open up and work in that HTML/PHP file everytime I want to update my current projects. Could I possible create a regular page to list them, and then pull that page’s text content into the PHP file with a PHP function? I’ve hunted all over for a plugin or function, but I’m fairly lost at the moment. Any help would be much appreciated.

Viewing 1 replies (of 1 total)
  • Try the Widget Context plugin.

    You could put a text widget in say the sidebar and pour your HTML list inside it.

    You go to Appearance | Widgets and add a text widget to say the Primary Sidebar. When you setup the text widget, Widget Context will appear and provide a means to let you choose the context of the text widget (i.e. where it will display itself).

    One of the options is on the Front page or Blog page. That would help you and avoid having to insert HTML into the front PHP page.

Viewing 1 replies (of 1 total)

The topic ‘Pull Page Text into PHP Table’ is closed to new replies.