I’m working at a WordPress theme. Since I need to display featured posts, related posts, some widgets with recent posts and so on, I need to use multiple custom...
  • May 24, 2022
  • 0 Comments
we’re using the Atlas HTML sitemap plugin, which caches the sitemap using the transients API with a call like: set_transient( 'dmac_html_sitemap', $output, 60*60*24*7 ); Now, we also have a...
  • May 22, 2022
  • 0 Comments
Haven’t worked much with XML so I’m hitting a bit of a wall: function getapi() { $api_response = wp_remote_get( "http://example.com/getXML" ); $data = wp_remote_retrieve_body( $api_response ); $output = new...
  • May 21, 2022
  • 0 Comments
This was really driving me crazy. I was debugging some code with code-generated transient names and they were failing like crazy for no apparent reason. After much much pain...
  • May 19, 2022
  • 0 Comments