Because of the order of array_merge the postid will always be overridden.
Right now we need to override the global $post variable which is far from ideal.
To Reproduce
Steps to reproduce the behavior:
Simply use echo_crp and try to pass postid as an argument.
Expected behavior
Allow postid to be passed as an argument to echo_crp.
Describe the bug We cannot override the postid (post for which the related posts are rendered) because of the following code:
in main_query.php line 87.
Because of the order of array_merge the postid will always be overridden. Right now we need to override the global $post variable which is far from ideal.
To Reproduce Steps to reproduce the behavior: Simply use echo_crp and try to pass
postid
as an argument.Expected behavior Allow postid to be passed as an argument to echo_crp.
Tested on the latest version