I've spent the last 4 hours trying to maneuver around a 500 code, to no avail. 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.
Using conditional statement to switch out content blurbs?
5
I've spent the last 4 hours trying to maneuver around a 500 code, to no avail.
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:
I know I'm missing something, but PHP isn't my strong suit. ;/ Can anyone lend me some insight into what's missing?
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 Code:
<?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; ?> - Synnuh
- noah.whitmore
- [ 1 ] Thanks
- Synnuh
- [1] reply
- noah.whitmore
- [ 1 ] Thanks
- Synnuh
Next Topics on Trending Feed
-
5