Add gigpress_related_shows shortcode to related post by default?

  • Question
  • Updated 3 years ago
  • Answered
I would like the gigpress_related_shows shortcode to be inserted by default into related posts. I cannot use the before or after option because of aesthetic reasons. Is there a way to achieve this?
Photo of coreyC

corey

  • 4 Posts
  • 0 Reply Likes

Posted 3 years ago

  • 1
Photo of Derek

Derek, Developer

  • 2020 Posts
  • 104 Reply Likes
You could alter the plugin, keeping in mind that plugin upgrades will revert this change.

Look in /gigpress/admin/handlers.php, line 109:

'post_content' => ''

Change to:

'post_content' => '[gigpress_related_shows]'
Photo of coreyC

corey

  • 4 Posts
  • 0 Reply Likes
Thanks, Derek. Great plugin, great support, much appreciated.