Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   RSS, Feeds & Subscribing (http://forum.bytesforall.com/forumdisplay.php?f=18)
-   -   [SOLVED] Is there a way to block JUST the byline from my feeds? (http://forum.bytesforall.com/showthread.php?t=5011)

kindofadraag Dec 26, 2009 12:59 PM

[SOLVED] Is there a way to block JUST the byline from my feeds?
 
3 Attachment(s)
I've inserted the php code for Simple Post Thumbnails in my byline.

I figured out how to block the byline from displaying in the first full post on the home page.

I've figured out how to make the byline show up on all the archive/category/etc pages.

But I can't figure out how to block it from showing up in my RSS feed.

As a result, I get a format that displays thumbnail AND post image - and they're the same photo.

Is there some conditional tag I can use to block the byline from displaying in my RSS feed? I tried to use the same php code that excludes certain categories from RSS, but it didn't work.

Site: http://www.fantasticweapon.com
Feed: http://www.fantasticweapon.com/feed
Running Atahualpa 3.4.2 and Wordpress 2.9

This is the code currently in my loop section (via Style/edit center column in Atahualpa Theme Options):

Code:

<?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
if ( has_post_thumbnail() ) {
        // the current post has a thumbnail
} else {
        // the current post lacks a thumbnail
}
?><?php bfa_post_kicker('<div class="post-kicker">','</div>'); ?> <?php bfa_post_headline('<div class="post-headline">','</div>'); ?><?php if ( is_front_page() AND $bfa_ata['postcount'] > 1) { ?>

<?php bfa_post_byline('<div class="post-byline">','</div>'); ?><?php } ?><?php if ( is_category() AND $bfa_ata['postcount'] > 1) { ?>

<?php bfa_post_byline('<div class="post-byline">','</div>'); ?><?php } ?><?php if ( is_author() AND $bfa_ata['postcount'] > 1) { ?>

<?php bfa_post_byline('<div class="post-byline">','</div>'); ?><?php } ?><?php if ( is_archive() AND $bfa_ata['postcount'] > 1) { ?>

<?php bfa_post_byline('<div class="post-byline">','</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>'); ?> </div><!-- / Post -->

Attachments: 2 examples of the problem I'm having (byline-feed.jpg, byline-feed2.jpg), 1 screenshot of current code in byline.

Anybody?

kindofadraag Dec 30, 2009 02:51 PM

Code to block byline on ALL posts in EVERY category from display in RSS feed?
 
I posted this in the RSS forum but I'm getting no response and the issue is driving me nuts so I'm putting it here too. Sorry if that breaks rules or something but I need help pleaaaase :(

-----

I've inserted the php code for Simple Post Thumbnails in my byline.

I figured out how to block the byline from displaying in the first full post on the home page.

I've figured out how to make the byline show up on all the archive/category/etc pages.

But I can't figure out how to block it from showing up in my RSS feed.

As a result, I get a format that displays thumbnail AND post image - and they're the same photo.

Is there some conditional tag I can use to block the byline from displaying in my RSS feed? I tried to use the same php code that excludes certain categories from RSS, but it didn't work.

Site: http://www.fantasticweapon.com
Feed: http://www.fantasticweapon.com/feed
Running Atahualpa 3.4.4 and Wordpress 2.9

This is the code currently in my loop section (via Style/edit center column in Atahualpa Theme Options):

Code:

<?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
if ( has_post_thumbnail() ) {
        // the current post has a thumbnail
} else {
        // the current post lacks a thumbnail
}
?><?php bfa_post_kicker('<div class="post-kicker">','</div>'); ?> <?php bfa_post_headline('<div class="post-headline">','</div>'); ?><?php if ( is_front_page() AND $bfa_ata['postcount'] > 1) { ?>

<?php bfa_post_byline('<div class="post-byline">','</div>'); ?><?php } ?><?php if ( is_category() AND $bfa_ata['postcount'] > 1) { ?>

<?php bfa_post_byline('<div class="post-byline">','</div>'); ?><?php } ?><?php if ( is_author() AND $bfa_ata['postcount'] > 1) { ?>

<?php bfa_post_byline('<div class="post-byline">','</div>'); ?><?php } ?><?php if ( is_archive() AND $bfa_ata['postcount'] > 1) { ?>

<?php bfa_post_byline('<div class="post-byline">','</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>'); ?> </div><!-- / Post -->

Anybody?

kindofadraag Dec 30, 2009 02:51 PM

Quote:

Originally Posted by kindofadraag (Post 21530)

Running Atahualpa 3.4.2 and Wordpress 2.9

Switched to 3.4.4 but still can't find a solution.

jonasgrumby Jan 27, 2010 11:35 PM

You can go into Style POSTS & PAGES > BYLINE Box and replace what is there with

visibility: hidden;

That will make it always hidden though....

kindofadraag Mar 12, 2010 12:05 PM

Quote:

Originally Posted by jonasgrumby (Post 23987)
You can go into Style POSTS & PAGES > BYLINE Box and replace what is there with

visibility: hidden;

That will make it always hidden though....

not what i'm looking for.
could i perhaps do it by adding something similar to this to functions.php, except change it to "if (is_feed())" ((whatever the php is for do not display p75thumbnail)))???


Code:

<?php
  if (is_home()) {
      query_posts("cat=-1,-2,-3");
  }
?>


kindofadraag Mar 12, 2010 12:18 PM

Quote:

Originally Posted by jonasgrumby (Post 23987)
You can go into Style POSTS & PAGES > BYLINE Box and replace what is there with

visibility: hidden;

That will make it always hidden though....

maybe i could do is there a way to add something like

Code:

#feed .postbyline {visibility: hidden;}
does the feed have any CSS assigned to it?


All times are GMT -6. The time now is 05:10 PM.

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