[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 Anybody? |
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 |
Quote:
|
You can go into Style POSTS & PAGES > BYLINE Box and replace what is there with
visibility: hidden; That will make it always hidden though.... |
Quote:
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 |
Quote:
Code:
#feed .postbyline {visibility: hidden;} |
All times are GMT -6. The time now is 01:54 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.