Title: [Plugin: Better Anchor Links] Syntax Error in options.php?
Last modified: August 20, 2016

---

# [Plugin: Better Anchor Links] Syntax Error in options.php?

 *  Resolved [jwb3rd](https://wordpress.org/support/users/jwb3rd/)
 * (@jwb3rd)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-better-anchor-links-syntax-error-in-optionsphp/)
 * 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.
 * [http://wordpress.org/extend/plugins/better-anchor-links/](http://wordpress.org/extend/plugins/better-anchor-links/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [elpresidento](https://wordpress.org/support/users/elpresidento/)
 * (@elpresidento)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-better-anchor-links-syntax-error-in-optionsphp/#post-2477645)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/better-anchor-links_f1f1f1.svg)
 * [Better Anchor Links](https://wordpress.org/plugins/better-anchor-links/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-anchor-links/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-anchor-links/)
 * [Active Topics](https://wordpress.org/support/plugin/better-anchor-links/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-anchor-links/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-anchor-links/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [elpresidento](https://wordpress.org/support/users/elpresidento/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-better-anchor-links-syntax-error-in-optionsphp/#post-2477645)
 * Status: resolved