WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #35390, comment 5


Ignore:
Timestamp:
01/12/2016 04:16:26 PM (4 years ago)
Author:
rabmalin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35390, comment 5

    initial v1  
    33You mentioned `$content_width` in the comment. So I tried changing value of that global variable. Now `width` of `img` tag is changed. This mystry of width value is solved. Is this expected behaviour? Limiting images inside `the_content()` makes sense. But limiting when using `the_post_thumbnail( 'large' );` does not make sense to me. When `1024` is set to `large` then I would expect that size for the display.
    44
     5I could not understand your question. But here are the steps to test.
     6* Clone `_s` theme.
     7* In `content.php`, add `the_post_thumbnail('large');` just above `the_content()` call.
     8* Create blog post. Set featured image.
     9* Check post in the front-end ( `single.php` template WordPressically ).
     10
    511Nilambar