• Resolved Kapsule Corp

    (@gothamdev)


    Hi,
    Before all, Best wishes for 2021

    I use this manual code with version 2.x.x of your plugin, but since the 3.0 version you notice that get_crp_posts_id will be replaced.
    I don’t understand how can i adapt my code ? (Please see above)

    
    $io_related = array();
    $postid = get_the_ID();
    $getmyd = get_crp_posts_id( array('postid' => $postid,'limit' => 6) ); 
    array_push($io_related, $getmyd[0]->ID, $getmyd[1]->ID, $getmyd[2]->ID, $getmyd[3]->ID, $getmyd[4]->ID, $getmyd[5]->ID);
    
    foreach ($io_related as $id_du_post_trouve) {...}
    
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to switch to the new CRP_Query’ is closed to new replies.