oik-clone v0.9 delivers improvements in the logic to perform post ID and domain name mapping on informal relationships within the post content. Post IDs are identified within shortcodes and URLs by following some simple rules:
- The ID is an integer, not 0
- that comes after a left square bracket or question mark
- before the next right square bracket or other significant delimeter
- and where the parameter name, if present, is one of the following: “id”, “ids”, “p”, “exclude”, “include”, “page_id”, “post_parent”, “post_parent__in”, “post_parent__not_in” , “post__in”, “post__not_in”, “meta_value”, “meta_value_num”
Examples
Positional parameter should be mapped
[bw_link 16661]
Parameter name not in the supported set, or not a parameter
[bw_csv posts_per_page=5 uo=u]
This number should not be mapped: 42
[bw_posts numberposts=5 post_parent=0]
[bw_posts author=1]
[bw_link oik-plugins.com/2015/04]
[/bw_csv]
Domain name mapping
Here the domain name should get mapped as well as the post ID
<a href="//www.oik-plugins.com/?p=16661" />cloned shortcode</a>
ID used out of context
Note: In the source installation post ID 16661 is the post ID for the cloned shortcode. This post ID should not be mapped since it is out of context.