Danke für die Antwort.
mein sticky-post Aufruf in home.php sieht wie folgt aus:
PHP
[COLOR=#454545][FONT=&]<[B]div [/B]id=[B]"sticky-post"[/B]>[/FONT][/COLOR]
[COLOR=#454545][FONT=&] <[B]div [/B]<?php post_class("sticky-image col-md-8");[/FONT][/COLOR]
[COLOR=#454545][FONT=&] if(has_post_thumbnail()):?>>[/FONT][/COLOR]
[COLOR=#454545][FONT=&] <[B]a [/B]href=[B]"[/B]<?php the_permalink(); ?>[B]"[/B]><?php the_post_thumbnail('murray-thumb'); ?></[B]a[/B]>[/FONT][/COLOR]
[COLOR=#454545][FONT=&] <?php else:?>[/FONT][/COLOR]
[COLOR=#454545][FONT=&] <[B]a [/B]href=[B]"[/B]<?php the_permalink(); ?>[B]"[/B]><[B]img [/B]src=[B]"[/B]<?php echo get_template_directory_uri() . '/assets/images/sticky-default.jpg'; ?>[B]"[/B]></[B]a[/B]>[/FONT][/COLOR]
[COLOR=#454545][FONT=&] <?php endif;?>[/FONT][/COLOR]
[COLOR=#454545][FONT=&] </[B]div[/B]>[/FONT][/COLOR]
[COLOR=#454545][FONT=&] <[B]div [/B]class=[B]"sticky-details col-md-4"[/B]>[/FONT][/COLOR]
[COLOR=#454545][FONT=&] <[B]div [/B]class=[B]"sticky-title title-font"[/B]>[/FONT][/COLOR]
[COLOR=#454545][FONT=&] <[B]a [/B]href=[B]"[/B]<?php the_permalink(); ?>[B]"[/B]><?php the_title(); ?></[B]a[/B]>[/FONT][/COLOR]
[COLOR=#454545][FONT=&] </[B]div[/B]> [/FONT][/COLOR]
[COLOR=#454545][FONT=&] <[B]div [/B]class=[B]"sticky-desc"[/B]>[/FONT][/COLOR]
[COLOR=#454545][FONT=&] <?php the_excerpt(); ?>[/FONT][/COLOR]
[COLOR=#454545][FONT=&] </[B]div[/B]> [/FONT][/COLOR]
[COLOR=#454545][FONT=&] </[B]div[/B]>[/FONT][/COLOR]
[COLOR=#454545][FONT=&]</[/FONT][/COLOR][B]div[/B][COLOR=#454545][FONT=&]>
[/FONT][/COLOR]
Alles anzeigen
Eine einfache SQL-Abfrage ist
Wo werden diese Informationen hergenommen? Der sticky, den ich bearbeiten möchte ist der chronologisch letzte Post. Das dürfte dann wohl so aussehen:
Diese Abfrage würde ich gerne ändern, so dass der Post einer bestimmten id ausgeben wird.
Oder gibt es für so etwas ein Plugin?