Do a php include:
<?php include('link'); ?>
Where “link” is the sidebar template. (I don’t think the php get will work…but I know the include will.)
I changed to <?php include (sidebar1.php); ?>
I get all these errors
Warning: main(sidebar1php): failed to open stream: No such file or directory in /home/rocky/public_html/wp-content/themes/rocky/archive.php on line 68
Warning: main(sidebar1php): failed to open stream: No such file or directory in /home/rocky/public_html/wp-content/themes/rocky/archive.php on line 68
try:
<?php include (templatepath . '/sidebar1.php'); ?>
It’s because you left out the quote marks – (‘sidebar1.php’) – and it has to be in the same folder as your theme.
I still get the error with the <?php include (templatepath . ‘/sidebar1.php’); ?>
Warning: main(templatepath/sidebar1.php): failed to open stream: No such file or directory in /home/rocky/public_html/wp-content/themes/rocky/archive.php on line 68
Warning: main(templatepath/sidebar1.php): failed to open stream: No such file or directory in /home/rocky/public_html/wp-content/themes/rocky/archive.php on line 68
Warning: main(templatepath/sidebar1.php): failed to open stream: No such file or directory in /home/rocky/public_html/wp-content/themes/rocky/archive.php on line 68
Warning: main(): Failed opening ‘templatepath/sidebar1.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’)
I got it to work because the TEMPLATEPATH” need to be in uppercase not lower case. Thanks for all your helps