• I love this plugin.

    I upgraded the plugin from 1.7.8.11 to the latest and I can no longer read the link field data type. It was working fine before.

    Below is an example of what was working before. Any idea why I can’t read this anymore?

    The Image upload field types also stopped working the way they did before.

    		  if ( $this->field->name == 'the_url' ) {
    		  $the_url = $this->field->get_value('the_url');
    		  }
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author xnau webdesign

    (@xnau)

    So, you’re using a custom template? There was a change in how the field class works, although I tried to make sure it was backward compatible.

    The code in your example does contain an error, and maybe it didn’t matter before the update…if I understand what you are trying to do there, the code should be updated to something like this:

    if ( $this->field->name() == 'the_url' ) {
       $the_url = $this->field->get_value();
    }

    The error was the $this->field->get_value() method doesn’t use an argument.

    If you post the code you’re using for your image field, I may be able to help you there, too.

    Thread Starter gmex1292

    (@gmex1292)

    Thanks so much! I will give that a try and report back.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Link Field no longer works after update’ is closed to new replies.