If you see wordpress URLs exposes ip address of your server despite being in cloudflare, go modify wp-config.php to make these setting

define('WP_HOME','https://example.com');
define('WP_SITEURL','https://example.com');

In most cases, this should resolve the problem.

Make sure you go to WordPress > General settings > and check the domain name has https not http.

You also have to save again the permalinks.

If you still cant resolve this problem, go to phpmyadmin and issue these commands

UPDATE wp_options SET option_value="https://example.com" WHERE option_name="home";
UPDATE wp_options SET option_value="https://example.com" WHERE option_name="siteurl";