Title: Shortcode permalink not working
Last modified: June 29, 2018

---

# Shortcode permalink not working

 *  [rich@eyecite.net](https://wordpress.org/support/users/richeyecitenet/)
 * (@richeyecitenet)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/shortcode-permalink-not-working/)
 * WP Version: 4.9.6
    Events List Version: 0.8.3
 * Problem: Shortcode [events-list] permalink wasn’t rendering correctly:
    returning:{
   current_psot_url}/?event_id1={event_id}
 * Solution:
 * Modified (event-list/includes/sc_event-list.php Line 447
 * Changed From:
    return esc_html(add_query_arg(‘event_id’.$a[‘sc_id_for_url’], 
   $event_id, $this->get_url($a)));
 * Changed To:
    return get_permalink($event_id);
 * Works perfect… may want to evaluate & push an update 😉

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [slaponicus](https://wordpress.org/support/users/slaponicus/)
 * (@slaponicus)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/shortcode-permalink-not-working/#post-10587465)
 * Thanks for your help Rich! I agree, this solution works perfectly and this should
   probably be in the next update 🙂
 *  [Felipe Oliveira Gonçalves](https://wordpress.org/support/users/felipeog476/)
 * (@felipeog476)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/shortcode-permalink-not-working/#post-10587774)
 * Thank you very much!
 *  [hatesspam](https://wordpress.org/support/users/hatesspam/)
 * (@hatesspam)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/shortcode-permalink-not-working/#post-10833233)
 * Note that your next (automatic) plugin update will overwrite your fix.
 *  [bdcstr](https://wordpress.org/support/users/bdcstr/)
 * (@bdcstr)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/shortcode-permalink-not-working/#post-10876232)
 * Works like a charm, thank you.
 * Please include in next update!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Shortcode permalink not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/event-list_f8f8f8.svg)
 * [Event List](https://wordpress.org/plugins/event-list/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/event-list/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/event-list/)
 * [Active Topics](https://wordpress.org/support/plugin/event-list/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/event-list/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/event-list/reviews/)

## Tags

 * [permalinks](https://wordpress.org/support/topic-tag/permalinks/)

 * 4 replies
 * 5 participants
 * Last reply from: [bdcstr](https://wordpress.org/support/users/bdcstr/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/shortcode-permalink-not-working/#post-10876232)
 * Status: not a support question