Most likely the file cannot be found, I’m assuming the file you’re trying to include is located in your theme folder, in that case you should use:
require_once( TEMPLATEPATH . '/file.php');
TEMPLATEPATH
will return something like this: /home/user/httdocs/wp-content/themes/twentyeleven
.
Worst case scenario you’ll find a Fatal Error, but that’ll help to find the problem.
Related Posts:
- ‘wp_login’ action hook not working with wp-login.php file
- Where is the best place to use add_filter
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- How to stop showing admin notice after close button has been clicked
- Is There a WordPress Hook to Filter the Edit Posts View?
- Add section (add_settings_section) to a custom page (add_submenu_page)
- When can you get current page ID and initialize hooks right after?
- Is there any record of installed plugins in the database?
- Add content to /wp-admin/plugin-install.php admin screens
- Custom admin column disappearing when using Quick Edit [duplicate]
- WordPress admin notice in plugin function
- How to call “page specific menu items” in template [closed]
- Using the ‘draft_to_publish’ hook (post status transition)
- Enqueue style inside shortcode but its loaded at the bottom of page (before footer scripts)
- How can I limit functionality in one version of a plugin?
- Shortcode display outside the div
- Plugin Development: WordPress processes twice on post update. How to skip process on the first?
- Good tools for locating hooks in a wordpress page/admin interface/blog post?
- how to not show plugin in admin area
- Can a plugin add to header/footer/body content?
- Is it possible to add an action to the currently running action?
- Action on post publish
- How to add inline css/js inside a shortcode
- How to call bind function in wordpress actions or hooks
- How to prevent action in ajax request, when in admin side?
- template_redirect not being called when using ajax
- How could I execute my plugin just in frontend (not in backend)
- Custom height/width for thickbox in WP Backend
- add action wp_head not working
- Hide Theme options and Customize Admin menu
- Making menu link open in new tab?
- What are the benefit in adding hook in the init() hook?
- How use %like% in sql statement wordpress
- add_action in functions.php, do_action in plugin?
- add action for displaying posts using a shortcode
- How to make a customize role and view a specific plugins base on that role?
- Any hook for pre-plugin-update -either bulk or single plugin update
- wordpress plugin is not activating from widget
- All Users > User List > Update User Meta Field Inline
- When to load auto-login code?
- How to get all of the activate_plugin action parameters?
- How to check current user before all actions and filters?
- Get Time Taken By Each Action Hook in WordPress
- Are functions in main plugin file called before function bound to register_activation_hook runs?
- Custom plugin init action causing general slowness
- Create tabs in admin options page from custom post type loop
- Dynamic admin submenu
- Inject HTML meta tag inside wordpress tag using add_shortcode
- Redirect to another page using contact form 7? [closed]
- Add action to fire when a published post is updated
- How to pass variables to a function argument using add_action [duplicate]
- Submit Form data to another page via Ajax (WordPress Way)
- How to make multiple admin pages for one plugin?
- Does using `add_action( ‘init’…` cause performance issues?
- How to get menu location in wp_update_nav_menu hook
- Hook for page Request?
- WordPress Site is Broken, Cannot see wp-admin page [closed]
- How to remove a CPT Menu from the Root Admin only
- Is there a better way of handling AJAX requests in WordPress?
- Custom CSS not being added by plugin
- How to use add_action for multiple instances of the same class
- How do i specify a url to which to redirect the user after he logs out from facebook?
- How to append new form elements in “Add New” form of Users in WordPress admin panel?
- force logged in user to stay in the dashboard
- How can we get this dynamically as this folder may not be by the same name always → wp-admin
- WP Forms not displaying,becomming an fatal error
- Why do actions with class and public method don’t fire __construct()
- How to properly enqueue jQuery knob on WordPress without conflict?
- The function called on the wp head hook becomes null
- WordPress Dashboard add user password not working, etc
- Add custom WordPress admin page with pretty url via code
- Create survey that redirects to sidebar menu customized to answers
- Nested Actions and Filters
- Passing function into add_action always returns the first argument
- Get post content inside plugin class method
- Admin menu hilighting wrong item for CPT
- Is admin section completely customizable in terms of styling?
- Store admin page into variable
- Remove action added in plugin class from theme
- echo plugin results on pages
- Plugin Hook: Get posts
- add_media_page function not creating submenu
- How can I pass value to function in add_menu_page?
- Is it possible to cancel a post status transition?
- Which filters or actions involve with index page for plugin?
- Redirect url in plugin to somewhere else?
- How to activate/deactivate menu tab and keep the same id?
- Add custom fields in the new and edit the site forms without touching the WP core
- Ajax in Plugins: returns the whole page
- How wordpress plugin hooks works? [duplicate]
- Gutenberg: Dynamic Block – Show saved data in the editor
- Combining JS files to one script
- How can I create a navigation menu in the sidebar that can also act like a slider?
- Plugin: Custom menu item problem
- My wp_update_nav_menu action is firing twice
- The Admin page isn’t showing in the sidebar of the dashboard
- warning wp session
- Submitting form to admin-post.php WordPress
- Issue with post request to admin-post.php
- Getting warning of Missing argument 2 for wpdb::prepare()