Refactor post object and page link

https://github.com/AdvancedCustomFields/acf5-beta/issues/272
Signed-off-by: Elliot Condon <e@elliotcondon.com>