getting ID and permalink inside the_content plugin
-
I’ve written a filter plugin that is called with the “the_content” hook. It looks to see if is_rss(), and if so, mangles the content in a particular way.
I need to get at the post’s details–particularly, the ID and the permalink–from inside my plugin. I don’t want to display them, I want to get them as variables. So the_id() and the_permalink() aren’t what I’m after.
Are there methods to call on $post or something?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘getting ID and permalink inside the_content plugin’ is closed to new replies.