WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. BruceFeuillette
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/football-pool/

  2. AntoineH
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year ago #

    Thanks :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.