Timeline for get custom post type thumbnail
Current License: CC BY-SA 3.0
15 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 1, 2020 at 8:31 | answer | added | habib | timeline score: 0 | |
Apr 19, 2017 at 13:08 | comment | added | Jebble | Take away the check entirely just to see, I think that function isn't working in your current setup. | |
Apr 19, 2017 at 11:18 | vote | accept | Ali Dayan | ||
Apr 19, 2017 at 10:15 | answer | added | Brad Dalton | timeline score: 1 | |
Apr 19, 2017 at 10:14 | comment | added | Ali Dayan | I get 2 bool(false) bool(false) but there is image | |
Apr 19, 2017 at 10:13 | comment | added | BlueSuiter |
@JeffreyvonGrumbkow var_dump($query->has_post_thumbnail() );
|
|
Apr 19, 2017 at 10:09 | comment | added | Jebble | What does var_dump( has_post_thumbnail() ); show you if oyu add it above the if statement. | |
Apr 19, 2017 at 9:47 | comment | added | BlueSuiter | Please see updated answer | |
Apr 19, 2017 at 9:43 | comment | added | Ali Dayan | Still the same :/ | |
Apr 19, 2017 at 9:43 | answer | added | BlueSuiter | timeline score: 1 | |
Apr 19, 2017 at 9:40 | comment | added | BlueSuiter |
Use get_the_post_thumbnail($post->ID) instead of the_post_thumbnail()
|
|
Apr 19, 2017 at 9:35 | comment | added | Ali Dayan | still can not see image :/ I have also change name slider to expro_slider it a little make sence but cannot see image. | |
Apr 19, 2017 at 9:17 | comment | added | BlueSuiter | Update your query while checking for thumbnail '$query->has_post_thumbnail();' | |
Apr 19, 2017 at 9:17 | review | First posts | |||
Apr 19, 2017 at 13:06 | |||||
Apr 19, 2017 at 9:13 | history | asked | Ali Dayan | CC BY-SA 3.0 |