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)
-   -   Remove "Leave Comment" on Syndicated Posts (http://forum.bytesforall.com/showthread.php?t=3248)

chrisp Sep 2, 2009 01:56 PM

Remove "Leave Comment" on Syndicated Posts
 
Hello,

I would like to remove " leave comment" from the footer of the posts on my syndicated feeds. As clicking on "leave comments" just takes them to the feed source. But, I do want it to show on all other posts.

This is the code that I am currently using for my feeds. Do I have to add something to this code to prevent it from showing or do I need to something elsewhere?:confused:


Quote:

<?php if (is_syndicated()) : ?>
<a href="<?php the_syndication_permalink(); ?>" title="<?php the_title(); ?>">Read
the Full Story Here</a><br/>
<?php the_syndication_source(); ?></a></p>
<?php endif; ?>
Thanks

juggledad Sep 5, 2009 04:02 AM

can you point me to a url so I can see the issue?

chrisp Sep 5, 2009 01:41 PM

Sure,

http://sustainapet.com

Thanks

juggledad Sep 6, 2009 08:19 AM

which post sould show the issue?

chrisp Sep 6, 2009 10:00 AM

Hello,

If you go to http://sustainapet.com/category/dogs/ anything that is a syndicated post shows the Link "Read Full Story" and the syndicated source name beneath it. This is where I want to leave out the "leave comments" link.

Thanks

juggledad Sep 6, 2009 12:08 PM

How are you getting the syndicated posts?

chrisp Sep 6, 2009 12:31 PM

FeedWordPress plugin

juggledad Sep 6, 2009 12:55 PM

where are you putting the code from post #1?

chrisp Sep 6, 2009 01:16 PM

I put the code in the Loop of center column ATO right after
Quote:

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

<?php if (is_syndicated()) : ?>
<a href="<?php the_syndication_permalink(); ?>" title="<?php the_title(); ?>">Read
the Full Story Here</a><br/>
<?php the_syndication_source(); ?></a></p>
<?php endif; ?>

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

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

juggledad Sep 6, 2009 02:20 PM

try this, change that bit to this:
HTML Code:

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

<?php if (is_syndicated()) : ?>
<a href="<?php the_syndication_permalink(); ?>" title="<?php the_title(); ?>">Read
the Full Story Here</a><br/>
<?php the_syndication_source(); ?></a></p>
<?php else:
  bfa_post_footer('<div class="post-footer">','</div>');
  endif; ?>


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

so IF it is syndicated, you get the 'Read the Full Story Here' but no 'Leave Comment' and vice versa.


All times are GMT -6. The time now is 09:03 AM.

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