WP_Error with get_category_parents

If you call get_the_category() without a parameter you have to use it in a loop – after the_post(); was called. Otherwise get_the_category() returns FALSE and get_category_parents() returns a WP_Error object … which is lacking a toString() method and therefore cannot be printed. So test if you get an object or a string before you try … Read more

Twitter feed – Failed to open stream [closed]

How to do remote requests in WordPress: Use the appropriate API First, there’s the WP HTTP API, which should be used for such tasks. And second, one should never ever use the @ operator, as this one suppresses error messages or notices and will successfully lock you out from troubleshooting your bugs. Just because you … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)