• Hello,

    I’d like to ask some question about how to show only the sidebar portion , beginning with the pages, then the links.

    I’ve tried about everything I can think of as a complete PHP newbie. but I always get parse errors when I try to get the sidebar with the command get_sidebar etc…. it doesnt seem to be working in sepparate files ?

    What do I need to do ? I need the extra link in order to allow for visually challenged people to directly see the links, because some of the aids out there place the links under the posts and thats not straight forward.

    Another option could be if I could anchor to that menu, but everything I tried failed, you cant seem to anchor to the #pages section .. can someone help ?

Viewing 1 replies (of 1 total)
  • Do you mean you’re trying to include the sidebar components in non-WordPress php files? To do this, you’ll need to include the wp-blog-header.php file before anything else, like so:

    <?php
    include('./wp-blog-header.php');
    ?>

    This *imports* WP’s functionality so you can use any of its template tag or function. Just make sure the path to wp-blog-header.php is correct.

Viewing 1 replies (of 1 total)
  • The topic ‘Showing only links/pages’ is closed to new replies.