Why are my styles being applied to the admin area?

All my enqueued styles are applied to the back-end as well. I have never encountered this behavior before. Here’s my code: wp_register_style( ‘main-styles’, get_stylesheet_directory_uri() . ‘/css/styles.css’, false, ‘1.0.0’, ‘all’); wp_enqueue_style(‘main-styles’); 2 Answers 2 Why are my styles being applied to the admin area? Assuming that is all of the code, it is because you are … Read more

Changing ‘view’ link for custom post type on list post screen?

How can I change the page that the ‘view’ action links to on the list post screen for a custom post type? Update I’ve got it to work with normal post types using the below code but where do I define the custom post type? function change_link($post_url,$post) { return ‘/video?id=’.$post->ID; } add_filter(‘post_link’,”change_link”,10,2); 2 Answers 2 … Read more