adding functions form plugins to a template
-
Hi,
I’m just getting started with wordpress and have a two-art question; I think at leas the first part is really simple, and the second maybe more difficult.
I have installed the “delicious for wordpress” plugin:
http://wordpress.org/extend/plugins/delicious-for-wordpress/I can tell the plugin is working as I can use the widget in the sidebar, but that’s not really what I want. There’s a simple and a more coplex version of my goal:
1). I would like to display the latest delicious bookmarks with certaintags in the body of certain pages. To do this I asume I have to modify page.php and/or create a new page templatefor special page categories. Thre’s a guide on the plugin homepage (http://rick.jinlabs.com/code/delicious/) that suggests this:
————–Usage
If you use WordPress widgets, just drag the widget into your sidebar and configure.
If widgets aren’t your thing, use the following code to display your latest bookmarks:delicious_bookmarks(‘username’);
———-
my question is, where do I insert this code, and do I have to do anything special to ensure that wordpress can read it? I’ve tried just adding the code like this :
<?php delicious_bookmarks(‘username’); ?>
after the ‘get content’ script in page.php using several different themes; but nothing shows up in the rendered pages and I can’t find it in the source, either. In fact I tried putting some static html in the page but that doesn’t show up either, so I guess I odn’t quite understand what’s going on.2) ideally I would like to limit the feed to entries with tags that correspond to the wordpress tags on a particular page. How would I do that dynamically? I imagine it’s possible but the wordpress code is pretty foreign to me.
Any guidance would be very much appreciated! thanks,
Matt
The topic ‘adding functions form plugins to a template’ is closed to new replies.