Timeline for Getting a specific value out of array using get_attached_media
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 20, 2013 at 6:54 | comment | added | hakre | It's already answered below, that is the ID of the post. Most things have got an ID due to the relational database system running in the background. guids came later and should identify in more open systems like across multiple, independet databases. | |
Aug 20, 2013 at 2:53 | vote | accept | gburning | ||
Aug 19, 2013 at 23:03 | comment | added | gburning | Thanks! Let's just say I'm not very fluent in PHP. What could I substitute "172" with though? I need it to be the id of the currently fetched media/audio attachement. 172 is only specific for one of the posts. | |
Aug 19, 2013 at 22:53 | history | edited | hakre | CC BY-SA 3.0 |
added 131 characters in body
|
Aug 19, 2013 at 22:46 | comment | added | hakre |
You normally access this way: $array[172]->guid - this is standard PHP. A more lengthy explanation (next to the PHP manual) is here: Able to see a variable in print_r()'s output, but not sure how to access it in code
|
|
Aug 19, 2013 at 22:21 | answer | added | s_ha_dum | timeline score: 2 | |
Aug 19, 2013 at 22:08 | history | asked | gburning | CC BY-SA 3.0 |