<?php $events = _get_page_by_name(”); ?>
gets the page with the name specified – but ONLY if the page name is one word. Any two or more word page name will not function. How can I call a page with this method that has two words in the name, ie: a page titled
the code <?php $events = _get_page_by_name(‘About Me’); ?> does not work. Any way to get that working with multiple word titled pages?
- The topic ‘Function get page by name only works with one word names’ is closed to new replies.