Skip to main content

Timeline for Querying Database with wpdb

Current License: CC BY-SA 3.0

12 events
when toggle format what by license comment
Jul 13, 2016 at 17:58 vote accept Phawkes
Jul 12, 2016 at 23:20 comment added Phawkes @knif3r I've posted a solution to what I was trying to do. :)
Jul 12, 2016 at 21:06 comment added knif3r You are accessing a $post variable in your functions php file, it cannot take dynamic ID because you are not in a loop, please describe what you are trying to achieve there. :)
Jul 11, 2016 at 19:48 answer added Phawkes timeline score: 0
Jul 11, 2016 at 8:33 answer added Ehsaan timeline score: 2
Jul 11, 2016 at 8:11 comment added Ismail Sorry. Did you dump $post_ID if it has value? and look right at the PMA if it really has a meta in there? also turn on debugging mode, it might help.
Jul 11, 2016 at 8:08 comment added Phawkes Thanks. As I mentioned, I tried that first and it did not work, so I looked for other solutions.
Jul 11, 2016 at 8:05 comment added Ismail Lol, the point is, it is really bad to query the DB while there's API to use. FYI, get_post_meta is cached and optimized, unserialized, and loads faster, unlike a direct SQL query, where you add more microseconds to your page load time, and extra server ressource usage..
Jul 11, 2016 at 8:01 comment added Phawkes Ha, tried that first which is what caused me to query the DB.
Jul 11, 2016 at 7:57 comment added Ismail Expecting Attempt #4: get_post_meta( $post_ID, 'wpcf-release-date', 1 )
Jul 11, 2016 at 7:52 review First posts
Jul 11, 2016 at 7:56
Jul 11, 2016 at 7:47 history asked Phawkes CC BY-SA 3.0