====== Unterschiede ====== Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
|
bild-eines-beitrags-automatisch-als-artikelbild-verwenden [2014/01/11 10:46] Sunflower Rechtschreibung |
bild-eines-beitrags-automatisch-als-artikelbild-verwenden [2019/04/25 14:04] (aktuell) |
||
|---|---|---|---|
| Zeile 29: | Zeile 29: | ||
| if ( has_post_thumbnail() ) { | if ( has_post_thumbnail() ) { | ||
| + | global $post; // added to prevent notice in WP_DEBUG | ||
| $post_image = get_the_post_thumbnail( $post->ID, esc_attr( $size ) ); | $post_image = get_the_post_thumbnail( $post->ID, esc_attr( $size ) ); | ||
| } | } | ||
| Zeile 39: | Zeile 40: | ||
| 'post_status' => null, | 'post_status' => null, | ||
| 'post_parent' => $post->ID, | 'post_parent' => $post->ID, | ||
| - | 'orderby' => ID, | + | 'orderby' => 'ID', |
| // ASC = first imgage, DESC = last image | // ASC = first imgage, DESC = last image | ||
| 'order' => 'ASC' | 'order' => 'ASC' | ||