Holen Sie sich die Bild source von get_the_post_thumbnail($post->ID);
Habe ich, um das Bild der Quelle aus dem code unten.
$thumburl = get_the_post_thumbnail($post->ID);
Hier bin ich immer
<img width="325" height="202" src="http://localhost/TantraProjects/Border-fall/Repo/WebApp/wp-content/uploads/2012/12/film.png" class="attachment-post-thumbnail wp-post-image" alt="film" title="film">
Ich will diesen Teil.
"http://localhost/TantraProjects/Border-fall/Repo/WebApp/wp-content/uploads/2012/12/film.png"
Wie bekomme ich den Quellcode ?
InformationsquelleAutor Ranjit | 2013-01-16
Du musst angemeldet sein, um einen Kommentar abzugeben.
InformationsquelleAutor Mustafa Shujaie
Dies ist, was Sie wollen, präziser:
https://developer.wordpress.org/reference/functions/get_the_post_thumbnail_url/
Können Sie die url für jede thumbnail-Größe, so dass Ihr durchaus eine nützliche Funktion.
InformationsquelleAutor filtah
es sir,
InformationsquelleAutor Ty Kayn