The method of get_page_by_slug seems to have difficulty with child
pages, so instead we're using get_permalink with get_option for
getting the Members Only link in the footer.
</span>
</a>
<br>
- <a class="footer-members-only" href="<?php echo get_permalink( get_page_by_path('members-only') ); ?>">Members Only</a>
+ <a class="footer-members-only" href="<?php echo get_permalink(get_option("glm_members_database_option_members_only_id")); ?>">Members Only</a>
</div>
<?php endif;?>
<?php $contactPage = get_post(3038);?>
<?php if($contactPage):?>
<span class="bullet"> | </span><span><a href="<?php echo get_page_link($contactPage->ID);?>">Contact Us</a></span>
- <span class="bullet"> | </span><span><a href="<?php echo get_permalink( get_page_by_path('members-only') ); ?>">Members Only</a></span>
+ <span class="bullet"> | </span><span><a href="<?php echo get_permalink(get_option("glm_members_database_option_members_only_id")); ?>">Members Only</a></span>
<?php endif;?>
</div>