You need to check for the presence of 'post_type'
as an index of $_GET
before using it:
if ((isset($_GET['post_type']) && $_GET['post_type'] == 'slide') || (isset($post_type) && $post_type == 'slide')) :
Also, you should be using the wp_enqueue_style
function instead of echoing your stylesheet at 'admin_head'
:
wp_enqueue_style( 'meteor-slides-admin', plugins_url('/css/meteor-slides-admin.css', __FILE__), array(), '1.0' );
Related Posts:
- Redirect to another page using contact form 7? [closed]
- Custom media upload content for inserting custom post shortcode
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- Redesigning Custom Post Type “Add New” page
- How to Remove Certain Screen Options and Meta Boxes from add/edit post type?
- Is There a WordPress Hook to Filter the Edit Posts View?
- Add section (add_settings_section) to a custom page (add_submenu_page)
- How to remove duplicate sub-menu name for top level menu items in a plugin?
- Creating a default Custom Post Template that a Theme can override
- How do I only load a plugin js on it’s settings pages?
- Using standard backend elements in Plugin
- Custom plugin settings: clicking “save changes” does not display success message
- Add CSS animation as Preloader to WordPress
- How to load a new template page according to a particular URL?
- How to get the custom page get_permalink?
- Updating post meta for custom post types
- remove custom taxonomy metabox form custom post type
- WordPress Plugin Look & Feel
- Custom Post Type Statuses
- How to Build a Movie Library in WordPress 3.x
- How do I register a stylesheet inside a WordPress widget?
- Unable to load stylesheets and scripts to plugin settings page
- Get image URL from media library in input
- Way to hook into a sidebar call to replace it with a custom sidebar
- wordpress reusable content blocks
- How do I write into a file (css)
- Loco Translate: Custom Post and Custom Taxonomy Labels not translated in wp-admin menu
- All Users > User List > Update User Meta Field Inline
- Is it possible to create Custom Post plug-in?
- Globally register styles but enqueue them selectively
- Admin Panel pagination link styles
- Display update notification messages like ‘What’s New’
- Creating a custom post type, adding custom meta fields, preventing all future editability of posts of this type
- Making a Template for a CPT created by a plugin
- how to access all user dashboard on fronted page [closed]
- How to set add question capability for author role in wp pro quiz plugin
- What would I need to write into a custom plugin in order to add a switch for a custom string of CSS to the edit page?
- do_action() hook into load-(page)
- How to change the name of the “edit my profile” link in the WordPress admin backend
- Unable to delete custom post types, confusion around capabilities
- Stop Plugin from Getting Styles from Other Plugin
- Admin AJAX doesn’t work in plugin admin page – Even though code is copied verbatim from WordPress Codex
- Disable Individual Plugins (specifically in Custom Post Types) on a per-post basis?
- Using ACF default value to autoincrement a number field
- How to add a dvi tag to a shortcode then change a generated text using jQuery
- remove all submenus from plugin
- creating a plug in that would tap into save/update action of posts [closed]
- How to Resize the Custom Post Images?
- Amazon.com intergration with WordPress?
- Images under 1MB are not being compressed
- plugin dev – minimum base css specificity?
- Adding custom meta boxes to specified custom post type
- How to use the CSS of the WordPress core in the development of my administration page?
- change or add css to theme from plugin
- Add logo to admin menu in my plugin
- Custom CSS not being added by plugin
- Plugin generated unexpected output – No PHP errors
- The Events Calendar Plugin – List View Background Colour Issue [closed]
- Custom Post Type template for homepage
- Ajax request sends url rather than data
- How to add captcha to publish widget
- Adding a jQuery modal dialog to the admin area
- Custom Post Type, Custom Columns List
- Themes conflicts and overrides my WordPress Support widget Plugin styles
- Want to create custom design of progress indicator in wpforms
- Two plugins using the same CSS id
- Need to edit author permissions | custom taxonomy
- Is it possible to pin a post in second position from top
- How to get the custom field value using SQL query
- Check if theme supports sidebar
- How to create admin setting for this small plugin
- WC Fix Attributes – ‘Add New’ Not Searchable/Delayed
- How to display the category name in the tab and post inside the tab in WordPress?
- custom post type plugin error [closed]
- Hide all Admin Notices and move on a separate page
- How to display the custom post related blog by category?
- Problem with checked box on wp car manager plugin
- Ultimate Members Default Post Layout problem
- custom post type get_posts() function not work
- Create multiple posts when a custom post is created
- SASS not showing in customized preloader plugin
- $wpdb->insert not working inside save_post tag
- Cannot view Custom Post Type no matter what I try
- WP Plugin CSS not being applied to page
- Echo custom admin field into a is_single()
- how to add custom css at top above all css file for specific url
- Get content and send to 3rd party
- How to add jquery to my custom post type wp plugin
- Synch Custom Post Types (and Custom Fields, Cats, etc.) Between WordPress Sites
- get_option include in my adsense
- Making a Custom Post Type Publish Loop
- Is an Office a custom post type [closed]
- Wrong block appender button showing
- How to access the page without registering in wordpress
- CPT template is not being automatically used single post pages
- How to make content as required in custom post type?
- How to create a “Most Popular” & “Latest” TAB in WordPress
- public custom posts not showing in my wordpress plugin
- How to provide page_template path in custom plugin using WordPress
- Display Any Field fromAdmin Panel in Frontend via Shortcode?