Using conditional statement to switch out content blurbs?
I'm trying to get the homepage to display the_content() and a paywall page to show the PayPal subscribe buttons and a small blurb of copy.
Here's the code I'm using right now:
<?php if ( is_front_page() ) : { ?>
<?php the_content(); ?>
<?php elseif( is_page('49')) : ?>
<div style="width:150px;height:25px;">
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="YN5GWV4G5WMB8">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!" width="300px" height="25px">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form></div>
<?php else : ?>
<?php endif; ?>
So... 'Hello'
Feel free to PM me if you have any questions about my posts. I'd like to hear from you!
So... 'Hello'
Feel free to PM me if you have any questions about my posts. I'd like to hear from you!