adaptive featured images wordpress 4.4 grid

Since you can’t detect screen size using pure PHP, you have 2 choices.

1- Use JavaScript or jQuery to get the screen size and then fetch contents dynamically using Ajax/JSON. You can find a solution here.

2- Load all of the 3 sizes of the thumbnails, and then use CSS media queries to show the proper image size based on the visitor’s screen (only recommended on pages with low number of images).

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