wp enqueue style on specific page templates

If you plan to do a lot of WP development you should bookmark this page: http://codex.wordpress.org/Conditional_Tags The other answer works but the conditional relies upon your page slug (myurl.com/this-is-the-slug) never changing. A more reliable method (IMO), and one that fits this case, would be to use the is_page_template(‘example-template.php’) conditional check instead.

How do I edit this code so that it also adds specific meta data into the user and subsequent CPT being created?

You would use these functions for adding meta: add_user_meta adds user meta add_post_meta adds post meta Notice that wp_insert_post will also return the post ID of the post created ( or a WP_Error object if it failed ). You can then use that in add_post_meta. See https://developer.wordpress.org/reference/functions/wp_insert_post/ Note though that tags/categories are not meta, they … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)