Remove the last /
in
include(TEMPLATEPATH . '/events.php/');
If you cannot find a file, check with file_exists( $path ) first.
Also TEMPLATEPATH
is deprecated now, use get_stylesheet_directory()
instead.
And your feed is located at /gpevent', not
/gpevents’ as Stephen Harris noted.
Related Posts:
- Serving precompressed content with Brotli on Apache
- How can I avoid code duplication for a blog with lots of source code?
- How to rename wp-includes folder?
- What’s the correct way to include files in WordPress TwentyTen theme with it’s own jquery scripts and css?
- ABSPATH not working! Any idea why?
- Get current user data from external PHP page
- External system integration with wordpress
- Why does get_template_part() break variables?
- How to pass variables with get_template_part?
- Problems Including File
- How to include core files into plugin
- How to check if txt file exists inside template folder?
- What’s the best way to ‘include’ a file in WordPress?
- locate_template function – File not getting included
- Can not include file from plugin into theme
- Include tags from array, ignore the rest in get_the_tags
- PHP files included within functions.php don’t work from admin area
- Wp Enviroment problem with included file
- Having trouble linking to file using relative path
- How can I include an external file in a post or page?
- Including php file in directory above WordPress installation
- Load content From Include File within plugin
- including Zend Gdata library path error
- What about “inc” (include) files and Child Theming? Is it possible?
- Make changes in /includes/http.php update safe
- Need to override file included in parent theme
- Class works in Admin, not found on Front End
- if statement parent page for child pages
- add_action outside a plugin
- Add page as static html into another page
- Dynamically determine URI to scripts and styles included with a class which could be added from plugin/theme/child theme/mu plugin
- Include another HTML file in a HTML file
- C++ #include guards
- C++ #include guards
- Inserting a PDF file in LaTeX
- How do I run a file on localhost?
- class not declared in scope – even though .h was included
- Already defined in .obj – no double inclusions
- How do you #include files in java?
- How do I include a JavaScript file in another JavaScript file?
- Random not declared in scope
- “Multiple definition”, “first defined here” errors
- Error “Unterminated conditional directive” in cross-referencing headers
- “Fatal error: Cannot redeclare function”
- What is the difference between a .cpp file and a .h file?
- Difference between require, include, require_once and include_once?
- How to include file in a bash shell script
- cmath vs math.h (And similar c-prefixed vs .h extension headers)
- How to add a default include path for GCC in Linux?
- Compiler error C4430: missing type specifier – int assumed [duplicate]
- Eclipse CDT: Symbol ‘cout’ could not be resolved
- how to get wp-content folder in wordpress?
- get_template_directory_uri pointing to parent theme not child theme
- Passing variables through locate_template
- Is there any way to use get_template_part() with folders?
- Add Custom Fields to Custom Post Type RSS
- How to show page content in feed?
- The proper way to include/require PHP files in WordPress
- Get all posts in RSS
- How do I replace a function, declared inside a plugin’s class, in functions.php?
- How to add post featured image to RSS item tag?
- How to remove feeds from WordPress totally?
- Should we use get_template_part() in functions files instead of include_once?
- How to get SimplePie fetch_feed without stripping iframe code?
- is_plugin_active() returning false on active plugin
- Unable to check if plugin is active
- Individual rss feed entry length for categories?
- How to include a plugin’s php file to another plugin functions file [duplicate]
- Include WP_Query in my own PHP file?
- Order by & include array by specific post ids
- Remove or Edit in Feeds
- Include and Exclude Taxonomies From Archives & Feeds Using ‘pre_get_posts’
- Advantages and disadvantages of using automatic-feed-links
- Include a external PHP file into a WordPress Custom Template
- Include PHP file in Content using [shortcode]
- Cannot get add_feed to work
- How to Make a Separate RSS Feed for Each Custom Post Type
- Should I provide RSS or Atom feeds?
- Include files in functions.php
- What is the right way to include a wp-admin file in your theme?
- How to prevent wordpress from loading old versions of jquery in wp_head();?
- How to secure or disable the RSS feeds?
- Rewrite custom post type rss feed links
- How to check if feed URL was requested?
- Why does Simplepie return feed items in a wrong order?
- How to create additional full text RSS feeds
- What is the best practice to check for pretty permalinks?
- Problem requiring/including plugin files with plugin_dir_path( __FILE__ )
- How can I generate a RSS feed based on a custom WP_Query?
- Refresh external feeds only in cron?
- Child Theme: how to override variables?
- RSS for Pages Instead of Posts?
- Custom RSS feed forces download
- Feed 404 Errors
- Getting /feed/ behind post urls in Google Webmaster Tools; crawler errors? [closed]
- load/require specific php files for specific pages/templates/post types
- Disable comments feed, but not the others
- Where to remove from comment’s feed?
- How to read the xml file in wordpress?
- How can I include JavaScript that use jQuery on admin side