Connecting the home page to WP backend