Course category carousel on a different WP site

Home Forums Legacy Support Support queries How-to & Troubleshooting Course category carousel on a different WP site

Viewing 11 posts - 16 through 26 (of 26 total)
  • Author
    Posts
  • #366515
    Anshuman Sahu
    Keymaster
    This reply has been marked as private.
    #366535
    ART-Providers
    Participant
    I still do not see Course url in the result or course url slug. What you see is the category slug. Could you please check specifically what I need is the course page like I pasted before. It's only getting the Add to basket id but not course url
    #366536
    ART-Providers
    Participant
    Can you not provide a patch for returning the course permalink I would have thought this is common to have easily on API but it isn't
    #366597
    Anshuman Sahu
    Keymaster
    YEs you are right it should be there and common to have one but we did not needed it for our app so we did not add it to the api hit . Please add this code in your wplms-customizer.php file in wplms customizer plugin :
    
    add_filter('bp_course_rest_prepare_course',function($response, $data, $request){
      if(!empty($data['id'])){
        $data['url'] = get_permalink($data['id']);
      }
      $response = rest_ensure_response( $data );
      return $response;
    },10,3);
    #366660
    ART-Providers
    Participant
    Thanks. Does this need adding to the data source site or the receiving site? I added to the data source site tech.art-providers.com but not sending data from there in the json What am I missing
    #366743
    Anshuman Sahu
    Keymaster
    It should be added on the site from where you want to get the data . You should get the url property in the json data
    #367202
    ART-Providers
    Participant
    https://www.staging10.art-providers.com/course-catalogue/ We have enabled the course catalog here. It only pulls 20 course links. How can this be increased to pull full course catalog?
    #367351
    Anshuman Sahu
    Keymaster
    Use this url : https://dev.art-providers.com/wp-json/wplms/v1/course/filters?filter=%7B%22search%22:%22%22,%22filters%22:%5B%5D,%22sort%22:%22popular%22,%22paged%22:1,%22per_view%22:9999999%7D
    #367510
    ART-Providers
    Participant
    This is only picking up 5 courses. Is this correct link you provided Could you check please. I am looking to get all courses as it shows here: https://dev.art-providers.com/all-courses/
    #367612
    ART-Providers
    Participant
    Can you please help
    #367791
    Anshuman Sahu
    Keymaster
    Hi replied on a different topic : https://dev.art-providers.com/wp-json/wplms/v1/course/filters?filter=%7B%22search%22:%22%22,%22filters%22:%5B%5D,%22sort%22:%22popular%22,%22paged%22:1,%22per_view%22:9999999%7D&per_view=999999
Viewing 11 posts - 16 through 26 (of 26 total)
  • The topic ‘Course category carousel on a different WP site’ is closed to new replies.