Football Pool
[resolved] fp-predictionform, post and permalink (3 posts)

  1. BruceFeuillette
    Posted 3 years ago #

    Hi !
    The save button from the fp-predictionform don't work when it's in a post.
    In my case the post's permalink is in the p=POST_ID format.
    FP rewrote it in the action attribute from the form tag with page_id=POST_ID.
    So a fp-predictionform shortcode in a post isn't "available" as you can't send the form as the page didn't exist.
    More globally, all the pages created by FP are in the page_id=POST_ID format.
    Is it possible for it to look at the permalink setting and generate pages or link as defined ?

    By the way, a workaround is to edit the file class-football-pool-pool.php and remove the content from the action attribute in line 847.
    action="%s" becomes action="".
    So the shortcode is fully functionnal in a post.


  2. AntoineH
    Plugin Author

    Posted 3 years ago #

    Thanks, it seems the shortcode was only working on pages. I didn't test it in single posts. Next version will have your suggested fix.

  3. BruceFeuillette
    Posted 3 years ago #

    Thanks :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Football Pool
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.