How to dynamically change spots of text in custom page?

As @Luccas said himself, adding meta boxes for separate areas of content are a good way of tackling this problem. This can be achieved using add_meta_box(). Although there are a number helpful plugins and libraries for handling meta box registration such as ACF and CMB2, plugin recommendations are off topic here at WordPress StackExchange.

How to set custom cookies in WordPress after a form is filled on a page

Your page-xyz.php has to look like this: $cookie_set = isset( $_COOKIE[‘mycookie’] ); if ( $_SERVER[‘REQUEST_METHOD’] == ‘POST’ ) : // exec your mysql queries and do else stuff… // after it set your cookie setcookie(‘mycookie’, ‘some value’); $cookie_set = true; endif; if ( $cookie_set ) : // render your content here else : // render … Read more