Resolution – Accessing post links in Theme/Plugin
-
Did you ever try to access the post link for this plugin, but couldn’t figure out how. It’s easy.
Anyway in the theme, or your own custom plugin, or anything, just use the following code:
`$url = CWS_PageLinksTo::$instance->get_link( $new_post->ID);
The $new_post->ID is just going to be the ID of the post. Then the $url will contain the URL you set for this plugin.
The topic ‘Resolution – Accessing post links in Theme/Plugin’ is closed to new replies.