Add recent post function works