deactivate

Navigation


Meta

RDF
RSS
Atom 0.3
XHTML
CSS


Design by Thought Mechanics
Powered by Wordpress 2.3.3
Clark Burbidge © 2004-2007



Categories



Popular Tags

K2 Custom Meta Widget

I have this nifty site map plugin from Dagon Design, but no where to put it. I had previously set up the Widgets plugin and had the Meta widget hanging out there just aching for another item, my sitemap link. I couldn’t find the correct file to edit, in fact I found the wrong one, and edited that code to no avail. Luckily I was able to use that code for a cut and paste quickey to get things going in a php widget. Anyway, I did a Wordpress support search and came up with this post asking the same sort of question. Here is what is did described and posted to the support topic.

Now here’s how I did it in detail for dummies like me…

I have K2 (http://getk2.com/), a widget compliant theme.
I have installed the plugin Sidebar Widgets (http://svn.wp-plugins.org/widgets/trunk).
I also installed Executable PHP widget (http://ottodestruct.com).

At “Admin>>Presentation>>Sidebar Widgets” I scrolled down and added a “PHP Code Widget”. I drug this new button thingy (I guess a widget?) to the sidebar. Clicked the menu bar on the right end of that widget, and in the code box entered my meta code.

[< ] ul [>]
< ?php wp_register(); ?>

  • < ?php wp_loginout(); ?>
  • “>Site Map
  • ” title=”< ?php _e('Syndicate this site using RSS 2.0'); ?>“>< ?php _e('Entries RSS'); ?>
  • ” title=”< ?php _e('The latest comments to all posts in RSS'); ?>“>< ?php _e('Comments RSS'); ?>
  • “>WordPress
  • < ?php wp_meta(); ?>
    [< ] /ul [>]

    This code (remove the “[]” around the “<>’s” of the “ul” and “/ul” tags) I stole from my K2 theme in the [k2 root]/app/moddules/meta.php.

    Voila!

    Tags


    Information


    Author: Administrator
    Posted: March 12, 2007
    Time: 2:06 am
    Trackback URL

    NO COMMENTS YET

    Reply to this entry


    You must be logged in to post a comment.