minor fixes for adverts in pages and posts templates