• Resolved supermind

    (@supermind)


    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);
    • This topic was modified 7 years, 2 months ago by supermind.
Viewing 1 replies (of 1 total)
  • Plugin Author Xylus Themes

    (@xylus)

    Hello @supermind,

    Thanks for reaching out to us.

    “_EventStartDate” is the custom field where The Events Calendar stores event start date and during import, we are also storing that field & value in the database. So, don’t know why permalinks not working with imported events.

    Can you please provide your permalinks custom code to us. so we can test it out and resolve the issue for you.

    You can contact us from here( https://xylusthemes.com/contact/) for share your code & faster solution.

    Thanks.

Viewing 1 replies (of 1 total)
  • The topic ‘Slug not working for imported events (custom permalink code)’ is closed to new replies.