I tried to display the eye-catching image of the specified post page by writing the following in the template.
echo get_the_post_thumbnail (00000);
I entered the post page ID as a numeric value in the 00000 part above.
How do I specify the post page ID correctly?
By the way,
<? php add_theme_support ('post-thumbnails');?>is added to functions.php.
Answer # 1
$post_id = integer value
<? php echo get_the_post_thumbnail ($post_id);?>
I solved it when I wrote it as above.
- php - wordpress fixed page image display
- wordpress - is it possible to use an existing image in a page created in a subdirectory?
- i want to get and display custom fields associated with taxonomy on the post page of wordpress custom post
- python - display image with cvimshow
- completing image path etc of wordpress theme with phpstorm
- html - i want to display the logo and background image in order by fading in
- i want to display in pv order of the categories of articles posted on wordpress popular posts
- ruby on rails 5 - i want to display an image on the rails image upload form and send it
- css - i want to display only the video on the top page in wordpress
- i want to cut and display the image android studio
- php - i want to display related articles in wordpress, but it doesn't work
- android - i want to display the image name in toast by pressing the image displayed in the recycler view
- php - i want to switch the header logo image of the wordpress theme "lightning" by page
- css - i want to display a rectangular image only in the square area with 90% width of the parent element as one side
- vba - is it possible to display the image pasted on b1 cell by referring to c1 cell on the same sheet and d1 on another sheet?
- python: i want to create a table of image list and display it in html
- ruby - about the display when you do not send the image in the comment
- is there a way in wordpress to keep the text from wrapping next to the image?
- reactjs - i want to display the image selected before the transition at the page transition destination with react-router
- php - coincheck api authentication doesn't work
- php - i would like to introduce the coincheck api so that i can make payments with bitcoin on my ec site
- [php] i want to get account information using coincheck api
- python - you may need to restart the kernel to use updated packages error
- python 3x - typeerror: 'method' object is not subscriptable
- xcode - pod install [!] no `podfile 'found in the project directory
- the emulator process for avd pixel_2_api_29 was killed occurred when the android studio emulator was started, so i would like to
- vuejs - [vuetify] unable to locate target [data-app] i want to unit test to avoid warning
- android studio - unresolved reference comes out in kotlin