angularjs not displaying all posts

change this : .controller(‘Content’, function($scope, $http, $routeParams) { $http.get(‘wp-json/posts?type=property?filter[“posts_per_page”]=25&filter[“orderby”]=date&filter[“order”]=desc/’ + $routeParams.ID).success(function(res){ $scope.post = res; to this: .controller(‘Content’, function($scope, $http, $routeParams) { $http.get(‘wp-json/posts?type=property?filter[“posts_per_page”]=25&filter[“orderby”]=date&filter[“order”]=desc/’ + $routeParams.ID).success(function(res){ $scope.posts = res;

How to get javascript slider to work! [closed]

You need to change the enqueueing part to this: function skinsave_2016_slider() { wp_enqueue_script( ‘skinsave_2016-slider-js’, get_bloginfo( ‘template_url’ ) . ‘/js/slider-js.js’, array(), null, true); } add_action(‘wp_enqueue_scripts’, ‘skinsave_2016_slider’); The problem was your function content_url() returns http://yourdomain.com/wp-content, and not the URL of the template. get_bloginfo( ‘template_url’ ) does return http://yourdomain.com/wp-content/themes/yourthemeslug. The second version you tried you wrote bloginfo(‘skinsave_2016’);, where … Read more

Setting value of session with Ajax not working

For me, Session with ajax working with the following code snippet add_action(‘init’, ‘start_session’, 1); function start_session(){ if(!session_id()) { session_start(); } } // form submition add_action( ‘wp_ajax_nopriv_form_response’, ‘form_response’ ); add_action( ‘wp_ajax_form_response’, ‘form_response’ ); function form_response() { $_SESSION[‘value’] = $_POST[‘formFiled’]; } //Session value if(isset($_SESSION[‘value’] )) { echo $_SESSION[‘value’]; }