Inside/Outside
-
I have created a widget that takes a custom field and uses it to create a table of contents. Each TOC entry is a link to ???
This is where I am looking for guidance. I want the link to pass a parameter, then use the parameter to generate dynamic content. The content is pulled from wp_posts, and I would like to just use the $wpdb library to retrieve the data.
I am not sure how to go about this. If I call the php directly, won’t I be bypassing the wordpress ‘context’ i.e. bypassing whatever controller WP uses to set things up? Or is ‘global $wpdb’ enough? I’d like this new ‘page template’ to be delivered as part of the widget/plugin instead of being theme specific, but be able to draw from the theme.
Am I over thinking this?
- The topic ‘Inside/Outside’ is closed to new replies.