• Resolved jwb3rd

    (@jwb3rd)


    Hi. I activated Better Anchor Links on a WordPress 3.3 test site running on MAMP. It worked great. I then moved the site over to a Mac OS Lion server, and the anchor links would not display in my sidebar (I inserted the template code). I checked the settings and I noticed that the Heading options were not displaying correctly. This is what I got,

    from options[‘is_headHi’])?> to options[‘is_headLo’]); _e(‘ (first heading number should be less or equal than the second)’,’mwmaal’); ?>

    instead of the drop-down menus for the headers.

    So I checked the options.php file in the better anchor links folder and noticed this on line 139:

    `from <?headSet(‘is_headHi’,$mwm_aalLoader->options[‘is_headHi’])?> to <?headSet(‘is_headLo’,$mwm_aalLoader->options[‘is_headLo’]);
    _e(‘ (first heading number should be less or equal than the second)’,’mwmaal’);
    ?>`

    Isn’t this missing ‘php’ after ‘<?’ ? I changed the above code to

    from <?php headSet(‘is_headHi’,$mwm_aalLoader->options[‘is_headHi’])?> to <?php headSet(‘is_headLo’,$mwm_aalLoader->options[‘is_headLo’]);
    _e(‘ (first heading number should be less or equal than the second)’,’mwmaal’);
    ?>

    and the header options display fine as well as the anchor links.
    I’m a little confused why this worked on one server and not on another.

    https://www.ads-software.com/extend/plugins/better-anchor-links/

Viewing 1 replies (of 1 total)
  • Plugin Author elpresidento

    (@elpresidento)

    Short tag ‘<?’ is standard but must be defined on the server (usually it is). I will change all short tag to long ‘<?php’. Thanks ;).

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Better Anchor Links] Syntax Error in options.php?’ is closed to new replies.