• Is there any way to display a wordpress widget (or two) in a page? Or is there a plugin that already does this?

    Thanks for the help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • If you look at the PHP code you can see what functions is being called by the widget and call that function manually. You’ll also need a plugin that allows you run PHP code from a post/page like ExecPHP.

    You’ll also need a plugin that allows you run PHP code from a post/page like ExecPHP.

    That’s only if you want to embed the code in the Page through the content editor. If you create a Page template, you can drop whatever PHP you want into it that way:

    http://codex.wordpress.org/Pages#Page_Templates

    Good point, Kafkaesqui. If you want it to appear in all your pages you can add it to the page template and it will run without the need for any additional plugins.

    Either way, if you’d like me to help you get this running then let me know what widget you’re talking about and I can see if I can figure out what code you will need to get it working.

    I also would love help with this! Have been trying for a little while to have Rss feed displayed as regular content! So far i have used Exec-PHP,runPHP,PHP Exec with simple pie and i keep getting errors. I know i an using the right commands because when i put it in the side bar in widgetize anything it works fine.

    I’ve been trying to insert widgets on my front page, with an old fashioned static sidebar on the blog part of the web site. But I’m stuck with a curious problem. I’ve inserted the following code into page.php in my template:

    <?php global $post; if (get_option('page_on_front') == $post->ID): ?>
    <ul>
      <?php if (function_exists('dynamic_sidebar')) { dynamic_sidebar(); } ?>
    </ul>
    <?php endif; ?>

    This code completely screws up the front page – the content for the page is replaced with a post from the blog. I can’t see any reason why the one particular post is displayed – no similar content, IDs, anything like that.

    Can anyone help?

    Incidentally, if I put that after the call for the_content() it works fine, though that doesn’t suit my layout.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Display a widget in a page’ is closed to new replies.