Hey @omiebi, welcome to Discourse Meta.
The best way to work with both Wordpress and Discourse is to have Wordpress and Discourse on separate servers (i.e. at different web addresses), and connect them using the WP Discourse Plugin. Please check out the introduction to the WP Discourse Plugin here: