Fetch Custom Related Posts via PHP
-
Hi Folks,
let me thank you first for this great plugin, it is the best I have tested.
I am calling the script via PHP with this code:
<?php if ( function_exists( 'echo_ald_crp' ) ) echo_ald_crp(); ?>
Is there a way to pass on custom post IDs via PHP?
Something like
<?php $crp_args = array( 'SHOWTHESEPOSTS' => array(123,234,456), 'limit' => $limit ); if ( function_exists( 'echo_ald_crp' ) ) echo_ald_crp($crp_args); ?>
??
(I am trying to use custom related posts on an archive template, which is not registered in the database, therefore I would like to pass the custom page ids on via PHP.)
Best wishes,
Elixhttps://www.ads-software.com/plugins/contextual-related-posts/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Fetch Custom Related Posts via PHP’ is closed to new replies.