Rest API encoding of double quotes

I’ll show here an example of how you can convert the HTML to Plain Text in Swift 4. This example simulate that you’re receiving this: WordPress&#8216House –> WordPress’House Add this extension to convert your html code to a regular string: ` extension Data { var html2AttributedString: NSAttributedString? { do { return try NSAttributedString(data: self, options: … Read more

Error rest_post_invalid_page_number trying to call Rest API

I don’t know why yet, but I had the same issue until I disabled a filter on pre_get_posts. What I’m doing here is retrieve all recipe custom post type when I’m on the home page : // add_filter( ‘pre_get_posts’, ‘my_get_posts’ ); function my_get_posts( $query ) { if ( is_home() && $query->is_main_query() ) $query->set( ‘post_type’, array( … Read more

REST api header link href

Turns out it was there all along, but being rendered into an html tag during the output. I ended up using; echo htmlspecialchars($response); To get this to be displayed correctly on the page. Although I want to be checking against it in php, which I haven’t go to figuring out yet, it is nice to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)