if ( $this_is_the_membership_portion) { show this content }
]]>get_template_part('footer-content', $this_is_the_membership_portion?'member':'public');
That might be almost the entirety of your footer.php template. You’d then have two different footer content template files: footer-content-member.php and footer-content-public.php
There are any number of variations you can implement on the basic conditional concept. In case you are not familiar with the condition?'member':'public';
ternary construct, it’s a shorthand way of using conditional logic. This example is equivalent to if condition is true then return ‘member’ else return ‘public’.
SO I had this working,then changed the page id and now it’s no longer working. I tried changing it back to the previous page id and it’s still not working. Ultimatley, I need it on two pages, 6385 and 7187. But if I can get it on this page for now, that’d be a start. Here’s code. Any ideas?
<?php
if (is_page ('6385') ):
get_footer('member');
else :
get_footer();
endif;
?>
Here’s a link if needed.
Page
is_page( 6385)
]]>