WordPress.org

Ready to get started?Download WordPress

Forums

Better Anchor Links
[resolved] Syntax Error in options.php? (2 posts)

  1. jwb3rd
    Member
    Posted 2 years ago #

    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/

  2. elpresidento
    Member
    Plugin Author

    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic