I've created a new footer footer-pillpack.php and I have the original footer footer.php
I can put each one on the same template and they both show, using
<?php get_footer( 'pillpack' ); ?>
or
<?php get_footer(); ?>
so i know the above code is working
What I'm trying to do is have the footer-pillpack.php show on only one page called: http://a1medicalsupply.us/pillpack/
And footer.php show on every other page.
Here is my code that I am putting on my page.php file
<?php
if ( is_home() ) :
get_footer();
elseif ( is_single( 'pillpack' ) ) :
get_footer( 'pillpack' );
else :
get_footer();
endif;
?>
It's not working. The footer.php file is showing on every page including the http://a1medicalsupply.us/pillpack/ page.
I'm new to this... Any one know what I'm doing wrong?
WordPress ...
ما را در سایت WordPress دنبال می کنید
برچسب : نویسنده : استخدام کار wpss بازدید : 123 تاريخ : جمعه 3 ارديبهشت 1395 ساعت: 6:39