Support » Plugins » Hacks » Meta Box does not save url input correctly

  • Resolved Mike_sa



    I have added a metabox for a url input. The meta box displays on the correct custom post and does save the data input to the meta box.

    Unfortunately on saving the input data , it strips all // : and .
    I have looked for the use of trim and similar and have not found it.
    When I just add a test custom field and enter a url and save, it keeps the url as input. So it must be the coding of the meta box

    This is the metabox function I have written:

    [77 lines of code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    Could someone please help me to figure out what is causing the issue.

    Thanks very much

Viewing 1 replies (of 1 total)
  • I see the code was moderate but for others having a similar issue .

    In my code I was using sanatize_html_class…….. I should have been using sanatize_url

Viewing 1 replies (of 1 total)
  • The topic ‘Meta Box does not save url input correctly’ is closed to new replies.