SwiftPress
Search…
Enabla Slider
In Config.swift file
  • IS_SLIDER_ENABLE = true
  • CATEGORY_ID = "YOUR_CATEGORY_ID"
/// CATEGORY SLIDER
/// IS_SLIDER_ENABLE = true; and category id must setted
/// Get category id -> YOUR_HOST_NAME/wp-json/wp/v2/categories
static let IS_SLIDER_ENABLE = false
static let CATEGORY_ID = "4"
static let SLIDER_URL = BASE_URL + "/wp-json/wp/v2/posts?_embed&status=publish&categories=" + CATEGORY_ID
Copy link