WordPress.org

Ready to get started?Download WordPress

Forums

[SOLVED] Add Sidebar to Custom Page ? (2 posts)

  1. cuban_cigar
    Member
    Posted 5 years ago #

    Hi

    I made completely custom page using the same css file as regular wordpress pages, and I would like to call the regular sidebar which displays posts etc on it.

    I tried adding:

    <?php get_sidebar();?>

    but it returns on the page:

    Fatal error: Call to undefined function: get_sidebar() in

  2. cuban_cigar
    Member
    Posted 5 years ago #

    solution

    <?php
    include "pathtoblog/wp-config.php";
    get_sidebar();
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.