Slug not working for imported events (custom permalink code)
-
Hi there,
Using: “The Events Calendar” Events
I have some custom code using these filters that works perfect for Events that I create manually, but for imported events….the slug does not resolve page.
The custom code I am using basically allows the Events to be accessed via this format:
https://domain.com/events/2018/01/31/My-Event-Name
Where the year, month, and date pull from the custom field _EventStartDate in TEC.
I know minimal PHP, but these are the “hooks” being used by the code block. Like I said, if I manually create Events from admin, the links work. The imported events do not work. FYI: I also tried your other plugin WP Event Aggregator and got same results.
Is there another event that the import code uses that I also need to “hook” into?
add_filter('pre_post_link', array('CustomFieldsPermalink', 'linkPost'), 100, 3); add_filter('post_type_link', array('CustomFieldsPermalink', 'linkPostType'), 100, 4); add_filter('rewrite_rules_array', array('CustomFieldsPermalink', 'rewriteRulesArrayFilter')); add_filter('query_vars', array('CustomFieldsPermalink', 'registerExtraQueryVars'), 10, 1); add_filter('request', array('CustomFieldsPermalink', 'processRequest'), 10, 1);
- The topic ‘Slug not working for imported events (custom permalink code)’ is closed to new replies.