Post linking instead of URL
-
Hey there,
is it possible to link a page using the page id for next step? Would be easier to deploy. Yet, I simply wrote <10 lines of code for this to work.
If not possible yet, could you consider the feature for the future?
What I did:if ( strpos($options['next_url'], 'post-id:') !== false ) { list($attr, $id) = explode(':', $options['next_url']); if ( !empty($id) ) { $permalink = get_permalink($id); if ( !empty($permalink) ) { $options['next_url'] = $permalink; } } }
in module-multistep.php lines 77-85. Then you simply write post-id:<id> as url field.
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Post linking instead of URL’ is closed to new replies.