Wordpress API is missing thumbnail in api

382
February 09, 2017, at 03:26 AM

I have a problem with translated blog posts and wordpress api.

The attachment array is empty, it is filled only in the english version. Any hints?

English translation:

attachments":[{"id":11896,"url":"http:\/\/www.testblog.com\/wp-content\/uploads\/2017\/02\/Blog.jpg","slug":"blog-the-history","title":"Blog - The History","description":"","caption":"","parent":11895,"mime_type":"image\/jpeg","images":[]}]

German translation:

"attachments":[],"comment_count":0,"comment_status":"open","thumbnail":null,"custom_fields":{"blog_quote_author":[""],"blog_quote_text":[""],"blog_thumbnail":["11976"]},"thumbnail_size":"thumbnail","thumbnail_images":[]}

Wordpress Version: 4.7.2
WPML Plugin

Any help appreciated.

Rent Charter Buses Company
READ ALSO
Convert array of objects to object with sub-arrays in PHP

Convert array of objects to object with sub-arrays in PHP

I search around for a bit but found nothing that did exactly what I'm after nor anything that really aided me in acheiveing what I'd like

350
Creating dynamically multidimensional array with indefinite levels

Creating dynamically multidimensional array with indefinite levels

I'm trying to build an affiliate programEverythig is working fine, except when I want to draw the structure

391
Is htmlspecialchars enough to prevent an SQL injection on a variable enclosed in single quotes?

Is htmlspecialchars enough to prevent an SQL injection on a variable enclosed in single quotes?

Although many sources quote the htmlspecialchars function with ENT_QUOTES to be not enough to prevent SQL injection, none of them provide a proof of the conceptI cannot think of any possibility myself

602
How to secure that an object is in database with same id?

How to secure that an object is in database with same id?

First of all, I have a database with data of all users, like that:

335