Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   [SOLVED] Problem with custom post template and Feedblitz/RSS readers (http://forum.bytesforall.com/showthread.php?t=16769)

OUMomof3 Feb 15, 2012 04:42 PM

[SOLVED] Problem with custom post template and Feedblitz/RSS readers
 
I have added some php to my ATO/Center Column insert area to include elements that I want to appear on every post as well as posts in certain categories. Unfortunately, the feedblitz email and rss readers do not show any of this information. I followed the instructions here:

http://forum.bytesforall.com/showthr...ight=revisited

Many of the posts I would like to do will have a few paragraphs at the top that are the same week after week. Can anyone recommend another way to use a template and still have the information parsed into feedblitz and an rss reader?

My site: www.CouponingUniversity.com
Version 3.6.4 (so I could put widgets in places the newer versions do not allow)
All bug fixes applied.

TIA

OUMomof3 Feb 16, 2012 05:56 AM

I am still struggling with this. I am wanting to place the intro html within the bodycopy area of the 'inside the loop' area. Anywhere I place the php for the category, I get an error for an "unexpected ?". I am not very proficient with php (yet ;) ). Here is the code:

Code:

<?php /* For SINGLE post pages if activated at ATO -> Next/Previous Navigation: */
bfa_next_previous_post_links('Top'); ?>

<?php /* Post Container starts here */
if ( function_exists('post_class') ) { ?>
<div <?php if ( is_page() ) { post_class('post'); } else { post_class("$odd_or_even"); } ?> id="post-<?php the_ID(); ?>">
<?php } else { ?>
<div class="<?php echo ( is_page() ? 'page ' : '' ) . $odd_or_even . ' post" id="post-'; the_ID(); ?>">
<?php } ?>

<?php bfa_post_kicker('<div class="post-kicker">','</div>'); ?>

<?php bfa_post_headline('<div class="post-headline">','</div>'); ?>

<?php bfa_post_byline('<div class="post-byline">','</div>'); ?>

<?php if (in_category('16')) { ?>
<div class="postintro"><center><img class="aligncenter" title="BFL" src="http://couponinguniversity.com/wp-content/uploads/2011/10/BFL-logo-300x142.jpg" alt="" width="300" height="142" />
<p><a href="http://couponinguniversity.com/wp-content/uploads/2011/06/Untitled-11.png"><img title="Untitled-1" src="http://couponinguniversity.com/wp-content/uploads/2011/06/Untitled-11.png" alt="" width="16" height="16" /></a>This icon indicates stock up prices.</center></div>
<?php }; ?>

<?php if (in_category('17')) { ?>
<div class="postintro"><img class="aligncenter size-full wp-image-1058" title="ALDI" src="http://couponinguniversity.com/wp-content/uploads/2011/08/ALDI.png" alt="" width="118" height="142" />

<p>Aldi has a new app for <a title="Aldi iphone app" href="http://itunes.apple.com/us/app/aldi-usa/id429396645?mt=8" target="_blank">iPhone</a> and <a title="Aldi Anroid App" href="https://market.android.com/details?id=de.apptiv.business.android.aldi_us&amp;feature=search_result#?t=W251bGwsMSwxLDEsImRlLmFwcHRpdi5idXNpbmVzcy5hbmRyb2lkLmFsZGlfdXMiXQ.." target="_blank">Android</a> smartphones. This app allows you to see weekly special buys, find new low prices, view the weekly ads, create a shopping list and find a store near you. *<i>*To view the ad on an iPhone, you will need to select view in html since the Flash player will not work.</i>

</br></br>Don't forget that you can price match produce specials at Walmart. While Walmart's coupon policy does not require you to have the ad to price match, using their smartphone app, you can easily pull up the ad in case they ask for it. Alternatively, you can print the <a title="Aldi Ad Online" href="http://aldi.us/us/html/offers/weekly_ads_ENU_HTML.php?WT.z_src=main" target="_blank">ad online</a>.</p></div>

<?php }; ?>

<?php bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); ?>




<?php bfa_post_pagination('<p class="post-pagination"><strong>'.__('Pages:','atahualpa').'</strong>','</p>'); ?>

<?php bfa_post_footer('<div class="post-footer">','</div>'); ?>

<?php if ( is_page() ) { ?>
<?php if(function_exists('selfserv_shareaholic')) { selfserv_shareaholic(); } ?>
<?php } ?>

<?php if ( is_single() ) { ?>
<?php if(function_exists('selfserv_shareaholic')) { selfserv_shareaholic(); } ?>
<?php } ?>
<?php if (function_exists('nrelate_related')) nrelate_related(); ?>


</div><!-- / Post -->

I believe if I can get the

Code:

<?php if (in_category('17')) { ?>
<div class="postintro"><img class="aligncenter size-full wp-image-1058" title="ALDI" src="http://couponinguniversity.com/wp-content/uploads/2011/08/ALDI.png" alt="" width="118" height="142" />

<p>Aldi has a new app for <a title="Aldi iphone app" href="http://itunes.apple.com/us/app/aldi-usa/id429396645?mt=8" target="_blank">iPhone</a> and <a title="Aldi Anroid App" href="https://market.android.com/details?id=de.apptiv.business.android.aldi_us&amp;feature=search_result#?t=W251bGwsMSwxLDEsImRlLmFwcHRpdi5idXNpbmVzcy5hbmRyb2lkLmFsZGlfdXMiXQ.." target="_blank">Android</a> smartphones. This app allows you to see weekly special buys, find new low prices, view the weekly ads, create a shopping list and find a store near you. *<i>*To view the ad on an iPhone, you will need to select view in html since the Flash player will not work.</i>

</br></br>Don't forget that you can price match produce specials at Walmart. While Walmart's coupon policy does not require you to have the ad to price match, using their smartphone app, you can easily pull up the ad in case they ask for it. Alternatively, you can print the <a title="Aldi Ad Online" href="http://aldi.us/us/html/offers/weekly_ads_ENU_HTML.php?WT.z_src=main" target="_blank">ad online</a>.</p></div>

<?php }; ?>

within the post-body php section, it will work.

OUMomof3 Feb 19, 2012 11:35 AM

Just in case someone else is looking for an answer, I ended up using the Boilerplate plugin to do what I needed.


All times are GMT -6. The time now is 04:35 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.