Support » Plugin: ACF Single Relationship Add New » wrong link to add post item

  • Resolved scottnath

    (@scottnath)


    Hey there,

    Thanks for a great plugin. Found a bug:

    I have my WordPress-core files in a subfolder, so the actual link to my wordpress admin is example.com/blog/wp-admin. On other sites I have example.com/wordpress/wp-admin. The link your system uses for the “Add New” button doesn’t take into account these other setup types.

    thanks!
    Scott

    http://wordpress.org/extend/plugins/acf-single-relationship-add-new/

Viewing 2 replies - 1 through 2 (of 2 total)
  • scottnath

    (@scottnath)

    I’ve done an adjustment to your code, adding a js variable so that the admin url is automatically found.

    I’ve put this into a GitHub repo here:
    https://github.com/scottnath/acf-single-relationship-add-new

    thanks,
    Scott

    Plugin Author fancyfiber

    (@fancyfiber)

    Thanks for the code fix, and I’m sorry I didn’t see this support request, I didn’t receive an email about is I thought I should have.

    The code has been updated with your fix, with some slight modifications.

    Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wrong link to add post item’ is closed to new replies.